new systemd services and install file for ubuntu-server
This commit is contained in:
parent
49ceea6871
commit
6611f239f7
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
|
11
tools/install_dependencies_ubuntu.sh
Normal file
11
tools/install_dependencies_ubuntu.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
# The plenum bot works when being run on a ubuntu-server
|
||||
# instance with these commands ran previously.
|
||||
# For other distros, please adapt these instructions
|
||||
# so you have the same packages installed as well.
|
||||
|
||||
# Optionally, if you don't have rust installed, you should do it here:
|
||||
# https://www.rust-lang.org/tools/install
|
||||
|
||||
sudo apt update
|
||||
sudo apt install gcc libssl-dev pandoc pkg-config libsqlite3-dev
|
||||
cargo build --release
|
Loading…
Reference in a new issue