Create both /var/run/havp/ and /var/tmp/havp/ from rc.local instead of
adding them to the PLIST. First, /var/run/* is cleaned upon reboot and second /var/tmp/havp/ has a chance to get wiped out being in a temporary dir. ok giovanni@ (maintainer)
This commit is contained in:
parent
196283bd3f
commit
1218d91767
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2010/04/06 15:01:22 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2010/05/13 16:24:36 ajacoutot Exp $
|
||||
|
||||
COMMENT= web proxy with antivirus filter
|
||||
|
||||
DISTNAME= havp-0.91
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
PKGNAME= ${DISTNAME}p2
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${HOMEPAGE}/download/
|
||||
|
||||
|
@ -3,6 +3,6 @@ into /etc/rc.local:
|
||||
|
||||
if [ -x ${PREFIX}/sbin/havp ]; then
|
||||
echo -n ' havp'
|
||||
install -d -o _havp /var/run/havp/
|
||||
install -d -o _havp /var/run/havp/ /var/tmp/havp/
|
||||
${PREFIX}/sbin/havp
|
||||
fi
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2009/06/22 07:58:24 sthen Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.4 2010/05/13 16:24:36 ajacoutot Exp $
|
||||
@newgroup _havp:602
|
||||
@newuser _havp:602:_havp:daemon:Havp Account:/nonexistent:/sbin/nologin
|
||||
@bin sbin/havp
|
||||
@ -143,5 +143,3 @@ share/examples/havp/whitelist
|
||||
@owner _havp
|
||||
@group _havp
|
||||
@sample /var/log/havp/
|
||||
@sample /var/run/havp/
|
||||
@sample /var/tmp/havp/
|
||||
|
Loading…
Reference in New Issue
Block a user