aboutsummaryrefslogtreecommitdiff
path: root/devel/dbus/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2006-06-10 19:03:48 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2006-06-10 19:03:48 +0000
commit70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c (patch)
tree7fe8ad9a7c9f6d3c114aa928687036b8077f388b /devel/dbus/files
parent136a06f03db93d8f720d36a84980d6db8bcc0536 (diff)
downloadports-70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c.tar.gz
ports-70eb7f5569bd10de6b7f8c4031c36e8f14b4f58c.zip
Notes
Diffstat (limited to 'devel/dbus/files')
-rw-r--r--devel/dbus/files/dbus.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/dbus/files/dbus.in b/devel/dbus/files/dbus.in
index 02d9c577595d..61638229f36b 100644
--- a/devel/dbus/files/dbus.in
+++ b/devel/dbus/files/dbus.in
@@ -21,9 +21,15 @@ rcvar=`set_rcvar`
command="%%PREFIX%%/bin/dbus-daemon"
pidfile="/var/run/dbus/${name}.pid"
-stop_postcmd=stop_postcmd
+start_precmd="dbus_prestart"
+stop_postcmd="dbus_poststop"
-stop_postcmd()
+dbus_prestart()
+{
+ mkdir -p $(dirname $pidfile)
+}
+
+dbus_poststop()
{
rm -f $pidfile
}