1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/bin/sh
# kFreeBSD does not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: elogind
# Required-Start: dbus $remote_fs $syslog
# Required-Stop: dbus $remote_fs $syslog
# X-Start-Before: docker $x-display-manager
# X-Stop-After: docker
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start elogind at boot time
# Description: Enable user and session management by elogind
### END INIT INFO
DAEMON=/usr/libexec/elogind
PIDFILE=/run/elogind.pid
DAEMON_ARGS='-D'
# Try SIGINT first for graceful stop so that existing sessions are not lost.
STOP_ARGS='--retry 30 --signal INT'
RELOAD_SIGNAL=HUP
|