openbsd-ports/mail/sympa/pkg/sympa.rc
ajacoutot 641af58881 Remove the lock file on rc_start() if it's there (can happen after an
unclean shutdown).

issue found and fix tested by Jean-Gerard Pailloncy
2011-07-06 17:11:03 +00:00

26 lines
328 B
Bash

#!/bin/sh
#
# $OpenBSD: sympa.rc,v 1.5 2011/07/06 17:11:03 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/sympa"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_start() {
[ -f /var/spool/lock/sympa ] && \
rm /var/spool/lock/sympa
${rcexec} "${daemon} start"
}
rc_stop() {
${daemon} stop
}
rc_check() {
${daemon} status
}
rc_cmd $1