mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-09-24 17:41:42 +02:00
add systemd service file
This commit is contained in:
parent
87961fe611
commit
912ac1eced
3 changed files with 24 additions and 1 deletions
13
src/systemd/dtranslatebot.service.in
Normal file
13
src/systemd/dtranslatebot.service.in
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Discord Translation Bot
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=dtranslatebot
|
||||
Group=dtranslatebot
|
||||
WorkingDirectory="@CMAKE_INSTALL_FULL_RUNSTATEDIR@/dtranslatebot"
|
||||
ExecStart="@CMAKE_INSTALL_FULL_BINDIR@/dtranslatebot" "@CMAKE_INSTALL_FULL_SYSCONFDIR@/dtranslatebot.json"
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue