mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
* 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:
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
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= dbus
|
PORTNAME= dbus
|
||||||
PORTVERSION= 0.61
|
PORTVERSION= 0.61
|
||||||
PORTREVISION?= 3
|
PORTREVISION?= 4
|
||||||
CATEGORIES?= devel gnome
|
CATEGORIES?= devel gnome
|
||||||
MASTER_SITES= http://dbus.freedesktop.org/releases/
|
MASTER_SITES= http://dbus.freedesktop.org/releases/
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,15 @@ rcvar=`set_rcvar`
|
||||||
command="%%PREFIX%%/bin/dbus-daemon"
|
command="%%PREFIX%%/bin/dbus-daemon"
|
||||||
pidfile="/var/run/dbus/${name}.pid"
|
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
|
rm -f $pidfile
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue