/usr/bin/webmlmd.rc is in courier-mlm 0.76.3-5+deb9u1.
This file is owned by root:root, with mode 0o755.
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
case "$1" in
/*)
prog="$1"
;;
*)
prog="`which $1`"
;;
esac
set -e
case "$2" in
start)
if test "$3" = ""
then
echo "Usage: $prog start [configfile]" >&2
exit 1
fi
/usr/bin/env -i /bin/sh -c "set -a; . $3; $prog check || exit 1; \
/usr/sbin/courierlogger -pid="'"${PIDFILE}"'" $LOGGEROPTS -start $prog"
exit $?
;;
stop)
if test "$3" = ""
then
echo "Usage: $prog stop [configfile]" >&2
exit 1
fi
/usr/bin/env -i /bin/sh -c "set -a; . $3;\
/usr/sbin/courierlogger -pid="'"${PIDFILE}"'" $LOGGEROPTS -stop $prog"
exit $?
;;
restart)
if test "$3" = ""
then
echo "Usage: $prog restart [configfile]" >&2
exit 1
fi
/usr/bin/env -i /bin/sh -c "set -a; . $3; $prog check || exit 1; \
/bin/mkdir -p `dirname $PIDFILE` ; \
/usr/sbin/courierlogger -pid="'"${PIDFILE}"'" $LOGGEROPTS -restart $prog"
exit $?
;;
*)
echo "Invalid command" >&2
exit 1
esac
|