dmx/xetc_systemd_system/lights.service

21 lines
474 B
SYSTEMD
Raw Normal View History

2024-08-07 11:57:25 +00:00
[Unit]
Description=Run sequence.py in tmux sess
# wait for network to come up
#After=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
User=light
Group=light
WorkingDirectory=/home/light/bin/dmx
ExecStartPost=/bin/sleep 11
# Start a new tmux session named "light"
# run Python script in the tmux session
ExecStart=/usr/bin/tmux new-session -s light -d "python3 sequence.py"
ExecStop=/usr/bin/tmux kill-session -t light
[Install]
WantedBy=multi-user.target