ansible-role-diun/templates/diun.service
2023-03-01 12:41:22 +01:00

19 lines
440 B
Desktop File

# Managed by Ansible
[Unit]
Description=Diun
Documentation=https://crazymax.dev/diun/
After=syslog.target
After=network.target
[Service]
RestartSec=2s
Type=simple
User={{ diun_user }}
Group={{ diun_user }}
ExecStart={{ diun_binary_path }}/diun serve --config {{ diun_configuration_path }}/{{ diun_configuration_file }} --log-level info
Restart=always
Environment=DIUN_DB_PATH={{ diun_home }}/diun.db
[Install]
WantedBy=multi-user.target