18 lines
432 B
Desktop File
18 lines
432 B
Desktop File
# copy this file to /etc/systemd/system
|
|
# then run:
|
|
# sudo systemctl start liftbot-py@ttyACM0.service
|
|
# sudo systemctl enable liftbot-py@ttyACM0.service
|
|
|
|
[Unit]
|
|
Description=Run Liftbot
|
|
|
|
[Service]
|
|
User=xobs
|
|
WorkingDirectory=/usr/local/share/liftbot
|
|
ExecStart=/usr/bin/python3 -u /usr/local/bin/liftbot.py --key [your chat key] --chat [your chat ID] --modem %I
|
|
Restart=on-failure
|
|
RestartSec=2s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|