Commit df6cb62e authored by Tomas Krizek's avatar Tomas Krizek

systemd/kresd@.service: switch to Restart=on-abnormal

Avoid unnecessary and confusing restarts when starting kresd
fails to start, e.g. due to incorrect configuration. Attempt
to restart on crashes only.
parent f61a4fdd
......@@ -88,7 +88,8 @@ if opt_systemd != 'disabled'
systemd = true
systemd_socket = opt_systemd != 'nosocket'
else
libsystemd = dependency('libsystemd', required: systemd == 'nosocket')
libsystemd = dependency('libsystemd', version: '>=214',
required: opt_systemd == 'nosocket')
if libsystemd.found()
systemd = true
systemd_socket = false
......
......@@ -8,7 +8,7 @@ Type=notify
WorkingDirectory=@systemd_work_dir@
ExecStart=@sbin_dir@/kresd --config=@etc_dir@/kresd.conf
User=@user@
Restart=on-failure
Restart=on-abnormal
Sockets=kresd.socket
Sockets=kresd-tls.socket
Sockets=kresd-control@%i.socket
......
......@@ -7,7 +7,7 @@ Documentation=man:kresd(8)
Type=simple
WorkingDirectory=@systemd_work_dir@
ExecStart=@sbin_dir@/kresd --config=@etc_dir@/kresd.conf --forks=1
Restart=on-failure
Restart=on-abnormal
[Install]
WantedBy=kresd.target
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment