Add systemd unit
This commit is contained in:
parent
2089dc8a41
commit
3390b12263
1 changed files with 15 additions and 0 deletions
15
skg-watcher.service
Normal file
15
skg-watcher.service
Normal file
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=SKG Watcher - Signature Collection Initiative Monitor
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=bot
|
||||
WorkingDirectory=/home/bot/workspace/skg-watcher
|
||||
Environment=PYTHONPATH=/home/bot/workspace/skg-watcher
|
||||
ExecStart=/usr/bin/python3 -m skg_watcher.main
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue