mirror of
https://git.ondrovo.com/MightyPork/group-actor.git
synced 2024-12-18 13:16:45 +00:00
add restart cmd, add example service file
This commit is contained in:
parent
0403d1ef71
commit
344b984e10
2 changed files with 18 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -3,3 +3,7 @@
|
|||
build:
|
||||
cargo build --release
|
||||
ln -sf ./target/release/fedigroups .
|
||||
|
||||
# if you have a service installed...
|
||||
restart:
|
||||
sudo systemctl restart fedigroups
|
||||
|
|
14
fedigroups.example.service
Normal file
14
fedigroups.example.service
Normal file
|
@ -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…
Reference in a new issue