2026-04-12 20:45:24 +02:00
|
|
|
[Unit]
|
|
|
|
|
Description=Weekend Wake Alarm
|
|
|
|
|
After=graphical-session.target
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=simple
|
2026-05-25 18:55:27 +02:00
|
|
|
# DISPLAY/PYTHONPATH mirror workout-locker.service: without DISPLAY the alarm
|
|
|
|
|
# crashes on cold boot with "no display name and no $DISPLAY" (Tk can't open
|
|
|
|
|
# the X server) before systemd retries. The short sleep lets the X session
|
|
|
|
|
# export DISPLAY into the user environment first.
|
|
|
|
|
Environment=DISPLAY=:0
|
|
|
|
|
Environment=PYTHONPATH=%h/testsAndMisc
|
|
|
|
|
ExecStartPre=/bin/sleep 1
|
2026-04-12 20:45:24 +02:00
|
|
|
ExecStart=/usr/bin/python -m python_pkg.wake_alarm._alarm --production
|
|
|
|
|
WorkingDirectory=%h/testsAndMisc
|
2026-05-23 19:51:26 +02:00
|
|
|
Restart=on-failure
|
|
|
|
|
RestartSec=10
|
2026-04-12 20:45:24 +02:00
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=graphical-session.target
|