2 # kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
3 if [ true
!= "$INIT_D_SCRIPT_SOURCED" ] ; then
4 set "$0" "$@"; INIT_D_SCRIPT_SOURCED
=true .
/lib
/init
/init-d-script
7 # Provides: courier-authdaemon
8 # Required-Start: $remote_fs $syslog
9 # Required-Stop: $remote_fs $syslog
10 # Default-Start: 2 3 4 5
14 # Author: Ondřej Surý <ondrej@debian.org>
16 DAEMON
="/usr/sbin/authdaemond"
17 DESC
="Courier authentication services"
18 PIDFILE
="/run/courier/pid"
21 do_tmpfiles courier-authdaemon
25 local type path mode user group
27 TMPFILES
=/usr
/lib
/tmpfiles.d
/$1.conf
29 if [ -r "$TMPFILES" ]; then
30 while read type path mode user group age argument
; do
31 if [ "$type" = "d" ]; then
34 chown
"$user:$group" "$path"
35 [ -x /sbin
/restorecon
] && /sbin
/restorecon
$path
41 do_start_cmd_override
() {
45 do_stop_cmd_override
() {
49 do_status_override
() {
50 status_of_proc
"/usr/lib/courier/courier-authlib/authdaemond" "$NAME" && return 0 ||
return $?