Install /var/run/rspamd in rc_pre().

from Brad
This commit is contained in:
ajacoutot 2016-01-16 10:39:59 +00:00
parent 5837865d94
commit f832373492
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2016/01/14 22:58:42 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.8 2016/01/16 10:39:59 ajacoutot Exp $
SHARED_ONLY= Yes
@ -6,7 +6,7 @@ COMMENT= event-driven spam filtering system in C/Lua
DISTNAME= rspamd-1.0.11
EXTRACT_SUFX= .tar.xz
REVISION= 0
REVISION= 1
CATEGORIES= mail

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: rspamd.rc,v 1.1.1.1 2015/10/09 16:09:17 sthen Exp $
# $OpenBSD: rspamd.rc,v 1.2 2016/01/16 10:39:59 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/rspamd"
daemon_flags="-u _rspamd -g _rspamd"
@ -9,4 +9,8 @@ daemon_flags="-u _rspamd -g _rspamd"
pexp="rspamd: main process"
rc_pre() {
install -d /var/run/rspamd
}
rc_cmd $1