ansible-role-diun/templates/diun.service

20 lines
440 B
SYSTEMD
Raw Permalink Normal View History

2023-03-01 10:56:33 +01:00
# 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 }}
2023-03-01 11:35:03 +01:00
ExecStart={{ diun_binary_path }}/diun serve --config {{ diun_configuration_path }}/{{ diun_configuration_file }} --log-level info
2023-03-01 10:56:33 +01:00
Restart=always
Environment=DIUN_DB_PATH={{ diun_home }}/diun.db
[Install]
WantedBy=multi-user.target