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
This commit is contained in:
ajacoutot 2011-07-06 17:11:03 +00:00
parent f5a4e7121a
commit 641af58881
2 changed files with 5 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.15 2011/06/02 13:41:39 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.16 2011/07/06 17:11:03 ajacoutot Exp $
COMMENT = mailing list manager with web interface
VERSION = 6.1.3
DISTNAME = sympa-${VERSION}
REVISION = 4
REVISION = 5
CATEGORIES = mail www

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: sympa.rc,v 1.4 2011/03/20 09:19:25 ajacoutot Exp $
# $OpenBSD: sympa.rc,v 1.5 2011/07/06 17:11:03 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/sympa"
@ -9,6 +9,8 @@ daemon="${TRUEPREFIX}/sbin/sympa"
rc_reload=NO
rc_start() {
[ -f /var/spool/lock/sympa ] && \
rm /var/spool/lock/sympa
${rcexec} "${daemon} start"
}