Use rm -f instead of checking for /var/spool/lock/sympa existence.

From rpe, ok ajacoutot@
This commit is contained in:
landry 2012-08-26 20:35:22 +00:00
parent fe0795a3b9
commit 6b702d2f1c
2 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.22 2012/08/06 10:43:45 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.23 2012/08/26 20:35:22 landry Exp $
COMMENT = mailing list manager with web interface
VERSION = 6.1.7
DISTNAME = sympa-${VERSION}
REVISION = 2
REVISION = 3
CATEGORIES = mail www

View File

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