summaryrefslogtreecommitdiff
path: root/chat/jabberd2/files/router.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chat/jabberd2/files/router.sh')
-rwxr-xr-xchat/jabberd2/files/router.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/chat/jabberd2/files/router.sh b/chat/jabberd2/files/router.sh
index 682b1c7f112..0a60641130b 100755
--- a/chat/jabberd2/files/router.sh
+++ b/chat/jabberd2/files/router.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: router.sh,v 1.1.1.1 2004/03/28 19:44:07 xtraeme Exp $
+# $NetBSD: router.sh,v 1.2 2004/06/26 11:21:46 abs Exp $
#
# PROVIDE: router
# REQUIRE: DAEMON c2s
@@ -18,6 +18,13 @@ command_args="2>&1 > /dev/null &"
router_user="@JABBERD_USER@"
pidfile="@JABBERD_PIDDIR@/${name}.pid"
stop_postcmd="remove_pidfile"
+start_precmd="ensure_piddir"
+
+ensure_piddir()
+{
+ mkdir -p @JABBERD_PIDDIR@
+ chown @JABBERD_USER@ @JABBERD_PIDDIR@
+}
remove_pidfile()
{