diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-07 18:47:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-07-07 18:47:18 +0000 |
commit | f9bb48be0295195c97bad86fe2dbe4ce8a9ea009 (patch) | |
tree | 0b08971d8993abc1e9f72b3a44c34674f34b74e3 /examples/openrc/utmpd | |
parent | bacfd01e62c84f74e5d56f95fdbf9736fd2a14f9 (diff) | |
download | utmps-f9bb48be0295195c97bad86fe2dbe4ce8a9ea009.tar.xz |
Fix openrc scripts (thanks Guillermo)
Diffstat (limited to 'examples/openrc/utmpd')
-rwxr-xr-x | examples/openrc/utmpd | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/openrc/utmpd b/examples/openrc/utmpd index a091528..2cf467b 100755 --- a/examples/openrc/utmpd +++ b/examples/openrc/utmpd @@ -1,8 +1,13 @@ #!/sbin/openrc-run -# Assumes the /run/utmps directory already exists and belongs to utmp - name="utmpd" -command="s6-ipcserver -- /run/utmps/utmpd-socket utmps-utmpd" +command="s6-ipcserver" +command_args="/run/utmps/utmpd-socket utmps-utmpd" +command_background=yes +command_user=utmp pidfile="/run/utmps/utmpd.pid" -start_stop_daemon_args="-b -m -c utmp -d /run/utmps" +start_stop_daemon_args="-d /run/utmps" + +start_pre() { + checkpath -D -d -o utmp:utmp -m 0755 /run/utmps +} |