Priyank wrote:

> Git-Url: 
> http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=b31d396def3d2469f767d3e035a76cb150479695
> 
> commit b31d396def3d2469f767d3e035a76cb150479695
> Author: Priyank <[email protected]>
> Date:   Mon Jan 26 12:38:05 2009 +0530
> 
> dbus-1.2.12-2-i686
> * Converted rc.dbus to the new format.
....


> -DPID="/var/run/dbus/dbus.pid"
> 
> -if [ "$1" = "stop" ]; then
> -     stop "$stopdbus"
> -     if [ -e $DPID ]; then
> -          killall dbus-daemon
> -          rm -f $DPID
> -     fi
> -     ok $?
> -elif [ "$1" = "restart" ]; then
> -     "$0" stop
> -     sleep 1
> -     "$0" start
> -else # start
> -     start "$startdbus"
> -     ## we need that
> -     if [ ! -d /var/run/dbus ]; then
> -         mkdir /var/run/dbus
> +source /lib/initscripts/functions
> +actions=(start stop restart status)
> +daemon=$"system message bus"
> +
> +pid="cat /var/run/dbus/dbus.pid 2> /dev/null"
> +
> +rc_start()
> +{
> +     start_msg
> +     # check if dbus is already running
> +     if [ ! -z "$(eval $pid)" ]; then
> +             ok 999
> +     else
> +             ## we need that
> +             if [ ! -d /var/run/dbus ]; then
> +                     mkdir /var/run/dbus
> +             fi
> +             ## that too
> +             chown messagebus:messagebus  /var/run/dbus
> +             ## bug #860
> +             [ -d /usr/share/dbus-1/services ] || mkdir -p 
> /usr/share/dbus-1/services
> +             ## this need be here
> +             /usr/bin/dbus-uuidgen --ensure
> +             if [ ! -e $DPID ]; then


This need  $(eval $pid) check :P since you removed DPID ;)

> +                     /usr/bin/dbus-daemon --system
> +             fi
> +             ok $?
> fi
> -     ## that too
> -     chown messagebus:messagebus  /var/run/dbus
> -     ## bug #860
> -     [ -d /usr/share/dbus-1/services ] || mkdir -p /usr/share/dbus-1/services
> -     ## this need be here
> -     /usr/bin/dbus-uuidgen --ensure
> -     if [ ! -e $DPID ]; then
> -        /usr/bin/dbus-daemon --system

crazy
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to