add restart cmd, add example service file

master
Ondřej Hruška 3 years ago
parent 0403d1ef71
commit 344b984e10
Signed by untrusted user: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      Makefile
  2. 14
      fedigroups.example.service

@ -3,3 +3,7 @@
build:
cargo build --release
ln -sf ./target/release/fedigroups .
# if you have a service installed...
restart:
sudo systemctl restart fedigroups

@ -0,0 +1,14 @@
[Unit]
Description=fedigroups daemon
After=network.target
[Service]
User=bot
SyslogIdentifier=fedigroups
WorkingDirectory=/srv/bots/fedigroups/
ExecStart=/srv/bots/fedigroups/fedigroups -v
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save