View | Details | Raw Unified | Return to bug 98580
Collapse All | Expand All

(-)dbus.new Tue Jun 6 03:09:32 2006 (-4 / +5 lines)
Lines 21-37 Link Here
21
command="/usr/local/bin/dbus-daemon"
21
command="/usr/local/bin/dbus-daemon"
22
pidfile="/var/run/dbus/${name}.pid"
22
pidfile="/var/run/dbus/${name}.pid"
23
23
24
start_precmd=${name}_prestart
24
stop_postcmd=stop_postcmd
25
stop_postcmd=stop_postcmd
25
26
26
start_precmd()
27
dbus_prestart()
27
{
28
{
28
    mkdir `dirname ${pidfile}` >/dev/null
29
    mkdir `dirname ${pidfile}`
29
    [ $? -eq 0 ] && chmod 751 ${pidfile}
30
}
30
}
31
31
32
stop_postcmd()
32
stop_postcmd()
33
{
33
{
34
    rm -f $pidfile
34
    rm -rf `dirname ${pidfile}`
35
}
35
}
36
36
37
37
38
cat dbus.diff
(-)dbus.new Tue Jun 6 03:09:32 2006 (-4 / +4 lines)
Lines 21-37 Link Here
21
command="/usr/local/bin/dbus-daemon"
21
command="/usr/local/bin/dbus-daemon"
22
pidfile="/var/run/dbus/${name}.pid"
22
pidfile="/var/run/dbus/${name}.pid"
23
                               
23
                               
24
start_precmd=${name}_prestart  
24
stop_postcmd=stop_postcmd      
25
stop_postcmd=stop_postcmd      
25
                               
26
                               
26
start_precmd()                 
27
dbus_prestart()                
27
{                              
28
{                              
28
    mkdir `dirname ${pidfile}` >/dev/null
29
    mkdir `dirname ${pidfile}` 
29
    [ $? -eq 0 ] && chmod 751 ${pidfile}
30
}                              
30
}                              
31
                               
31
                               
32
stop_postcmd()                 
32
stop_postcmd()                 
33
{                              
33
{                              
34
    rm -f $pidfile             
34
    rm -rf `dirname ${pidfile}`
35
}
35
}

Return to bug 98580