mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
Install rc.d script with -dist suffix to not overwrite real one
Set LC_ALL=C before to avoid bad regex surprises when restarting by hand Remove socket after killing
This commit is contained in:
parent
85b89802c3
commit
4c66a8732c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88685
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= sentinel
|
||||
PORTVERSION= 1.6.5b
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= smfilter
|
||||
@ -32,7 +33,7 @@ do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/sentinel ${PREFIX}/sbin
|
||||
@${MKDIR} ${PREFIX}/var/sentinel
|
||||
${CHOWN} smmsp:smmsp ${PREFIX}/var/sentinel
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d
|
||||
${INSTALL_DATA} ${FILESDIR}/000.sentinel.sh ${PREFIX}/etc/rc.d/000.sentinel.sh-dist
|
||||
${INSTALL_DATA} ${WRKSRC}/sentinel.cf.SAMPLE ${PREFIX}/etc/sentinel.cf.dist
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
@ -14,7 +14,7 @@ start)
|
||||
if [ -x ${PREFIX}/sbin/sentinel -a -f ${PREFIX}/etc/sentinel.cf ]
|
||||
then
|
||||
rm -f ${SOCKET}
|
||||
${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
|
||||
LC_ALL=C ${PREFIX}/sbin/sentinel -c ${PREFIX}/etc/sentinel.cf -p unix:${SOCKET} -d && echo -n ' sentinel'
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
@ -23,6 +23,7 @@ stop)
|
||||
if [ -e ${SOCKET} ]
|
||||
then
|
||||
killall -KILL sentinel
|
||||
rm -f ${SOCKET}
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
@ -1,6 +1,6 @@
|
||||
sbin/sentinel
|
||||
etc/sentinel.cf.dist
|
||||
etc/rc.d/000.sentinel.sh
|
||||
etc/rc.d/000.sentinel.sh-dist
|
||||
@exec mkdir %D/var/sentinel
|
||||
@exec chown smmsp:smmsp %D/var/sentinel
|
||||
@unexec rmdir %D/var/sentinel 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user