17
liftbot-py@.service
Normal file
17
liftbot-py@.service
Normal file
@ -0,0 +1,17 @@
|
||||
# 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
|
Reference in New Issue
Block a user