Skip to content

systemd service file #1636

Answered by mrhackcz
dkebler asked this question in Q&A
Discussion options

You must be logged in to vote

One is shipped with the Debian package. I just changed the user, because I don't want it to run as root.

# /lib/systemd/system/dkron.service
[Unit]
Description=Dkron Agent
Documentation=https://dkron.io
After=network.target

[Service]
User=root
ExecStart=/usr/bin/dkron agent
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
KillSignal=SIGTERM

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/dkron.service.d/override.conf
[Service]
User=USER
WorkingDirectory=/home/USER

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vcastellm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants