systemd: change working directory to /var/lib/dtranslatebot

This commit is contained in:
Syping 2024-02-27 10:02:32 +01:00
parent 912ac1eced
commit 716a03c43b

View file

@ -5,7 +5,7 @@ After=network.target
[Service]
User=dtranslatebot
Group=dtranslatebot
WorkingDirectory="@CMAKE_INSTALL_FULL_RUNSTATEDIR@/dtranslatebot"
WorkingDirectory="@CMAKE_INSTALL_FULL_LOCALSTATEDIR@/lib/dtranslatebot"
ExecStart="@CMAKE_INSTALL_FULL_BINDIR@/dtranslatebot" "@CMAKE_INSTALL_FULL_SYSCONFDIR@/dtranslatebot.json"
Restart=on-failure