1
0

Add systemd service file to linux packages

This commit is contained in:
kolaente
2021-03-28 18:18:58 +02:00
parent 6c3488b8aa
commit bc782e68ff
3 changed files with 30 additions and 0 deletions

24
vikunja.service Normal file
View File

@ -0,0 +1,24 @@
[Unit]
Description=Vikunja
After=syslog.target
After=network.target
# Depending on how you configured Vikunja, you may want to uncomment these:
#Requires=mysql.service
#Requires=mariadb.service
#Requires=postgresql.service
#Requires=redis.service
[Service]
RestartSec=2s
Type=simple
WorkingDirectory=/opt/vikunja
ExecStart=/usr/local/bin/vikunja
Restart=always
# If you want to bind Vikunja to a port below 1024 uncomment
# the two values below
###
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target