mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-07-04 12:03:08 +02:00
14 lines
533 B
SYSTEMD
14 lines
533 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Diet Guard cross-device log sync (GitHub-backed)
|
||
|
|
After=network-online.target
|
||
|
|
Wants=network-online.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
# Headless: no DISPLAY/XAUTHORITY needed, unlike diet-guard-gate.service.
|
||
|
|
# Deliberately a separate unit from the gate, not piggybacked on its tick:
|
||
|
|
# the gate is a *blocking* oneshot that holds the lock open until a meal is
|
||
|
|
# logged, so running sync on the same schedule would mean sync silently
|
||
|
|
# stalls for as long as a lock is showing.
|
||
|
|
ExecStart=/usr/bin/python -m diet_guard sync
|