new systemd services and install file for ubuntu-server
This commit is contained in:
parent
49ceea6871
commit
6611f239f7
3 changed files with 30 additions and 0 deletions
9
systemd/plenumbot.service
Normal file
9
systemd/plenumbot.service
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=CCCB Plenum-Bot
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/plenum-bot/plenum-bot/target/debug/Plenum-Bot
|
||||
Type=simple
|
||||
User=root
|
||||
|
10
systemd/plenumbot.timer
Normal file
10
systemd/plenumbot.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=CCCB Plenum-Bot
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5min
|
||||
# OnUnitActiveSec=5
|
||||
OnCalendar=*-*-* 06:00:00 Europe/Berlin
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue