* Rename our rc.d stop_postcmd function to be consistent with other scripts

* Create the directory to hold the dbus pidfile before starting as MFS-mounted
  /var's will not have this directory [1]

PR:		98580 [1]
This commit is contained in:
Joe Marcus Clarke 2006-06-10 19:03:48 +00:00
parent 136a06f03d
commit 70eb7f5569
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165041
2 changed files with 9 additions and 3 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= dbus
PORTVERSION= 0.61
PORTREVISION?= 3
PORTREVISION?= 4
CATEGORIES?= devel gnome
MASTER_SITES= http://dbus.freedesktop.org/releases/

View file

@ -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
}