final final production configs
parent
b70188d12e
commit
b16ec40694
@ -0,0 +1,5 @@
|
|||||||
|
alias HARBORBOT_RESTART="sudo systemctl daemon-reload;sudo systemctl restart harbor-bot"
|
||||||
|
alias HARBORBOT_LOGS="sudo journalctl -u harbor-bot -f"
|
||||||
|
alias HARBORBOT_STOP="sudo systemctl stop harbor-bot"
|
||||||
|
alias HARBORBOT_START="sudo systemctl start harbor-bot"
|
||||||
|
alias HARBORBOT_STATUS="sudo systemctl status harbor-bot"
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Harbor Bot Pickleball Reservation Service -- put in /etc/systemd/system/harbor-bot.service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=pi
|
||||||
|
WorkingDirectory=/home/pi/harbor-bot
|
||||||
|
ExecStart=/usr/bin/python3 -u /home/pi/harbor-bot/harbor_bot.py --daemon --live
|
||||||
|
Restart=always
|
||||||
|
RestartSec=30
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
Loading…
Reference in New Issue