bundles/oidentd: provide our own systemd unit file
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d99a784e3a
commit
a340071ad8
4 changed files with 28 additions and 6 deletions
12
bundles/oidentd/files/oidentd.service
Normal file
12
bundles/oidentd/files/oidentd.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=RFC 1413 compliant ident daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/oidentd -i -u oident -g oident
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -5,6 +5,12 @@ files = {
|
||||||
'svc_systemd:oidentd:restart',
|
'svc_systemd:oidentd:restart',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'/usr/local/lib/systemd/system/oidentd.service': {
|
||||||
|
'triggers': {
|
||||||
|
'action:systemd-reload',
|
||||||
|
'svc_systemd:oidentd:restart',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
svc_systemd = {
|
svc_systemd = {
|
||||||
|
@ -12,6 +18,7 @@ svc_systemd = {
|
||||||
'needs': {
|
'needs': {
|
||||||
'pkg_apt:oidentd',
|
'pkg_apt:oidentd',
|
||||||
'file:/etc/oidentd.conf',
|
'file:/etc/oidentd.conf',
|
||||||
|
'file:/usr/local/lib/systemd/system/oidentd.service',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
directories = {
|
directories = {
|
||||||
'/usr/local/lib/systemd/system': {
|
|
||||||
'purge': True,
|
|
||||||
'triggers': {
|
|
||||||
'action:systemd-reload',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
'/var/lib/systemd-timer-monitored': {
|
'/var/lib/systemd-timer-monitored': {
|
||||||
'mode': '0777',
|
'mode': '0777',
|
||||||
},
|
},
|
||||||
|
|
|
@ -39,6 +39,15 @@ files = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
directories = {
|
||||||
|
'/usr/local/lib/systemd/system': {
|
||||||
|
'purge': True,
|
||||||
|
'triggers': {
|
||||||
|
'action:systemd-reload',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
svc_systemd = {
|
svc_systemd = {
|
||||||
'systemd-journald': {
|
'systemd-journald': {
|
||||||
'needs': {
|
'needs': {
|
||||||
|
|
Loading…
Reference in a new issue