/usr/lib/courier/init-d-script-courier is in courier-base 0.78.0-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/sh
do_tmpfiles() {
local type path mode user group
TMPFILES=/usr/lib/tmpfiles.d/$1.conf
if [ -r "$TMPFILES" ]; then
while read type path mode user group age argument; do
if [ "$type" = "d" ]; then
mkdir -p "$path"
chmod "$mode" "$path"
chown "$user:$group" "$path"
fi
done < $TMPFILES
fi
}
do_start_prepare() {
do_tmpfiles $(basename $0)
}
do_start_cmd_override() {
if [ "$DO_START" != "yes" ]; then
return 2
fi
if pidofproc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" >/dev/null; then
return 1
fi
if $DAEMON start $DAEMON_ARGS; then
return 0
else
return 2
fi
}
do_stop_cmd_override() {
if ! pidofproc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" >/dev/null; then
return 1
fi
if $DAEMON stop $DAEMON_ARGS; then
return 0;
else
return 2;
fi
}
do_status_override() {
status_of_proc ${PIDFILE:+-p ${PIDFILE}} "$DAEMON" "$NAME"
}
|