X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=gdm.init;h=3a620f50feec8ccc8c20eabfea20a7635e677a5b;hb=b235b01d6e2aae8e36c0de43ce1bb590bed47d6b;hp=270601a8bd71743b2982350baa75bdc8270b161c;hpb=3af70f60f6630cf32c9bd79a49621722b2063c0e;p=packages%2Fgdm.git diff --git a/gdm.init b/gdm.init index 270601a..3a620f5 100644 --- a/gdm.init +++ b/gdm.init @@ -4,7 +4,7 @@ # # Version: @(#) /etc/rc.d/init.d/gdm 0.1 # -# chkconfig: 5 95 5 +# chkconfig: 5 95 05 # description: Starts and stops the Gnome Display Manager at startup and \ # shutdown.. # @@ -26,7 +26,8 @@ case "$1" in # Check if the service is already running? if [ ! -f /var/lock/subsys/gdm ]; then msg_starting "Gnome Display Manager" - daemon open /usr/sbin/gdm + start-stop-daemon --start -b --exec /usr/sbin/gdm + ok RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/gdm else @@ -43,7 +44,7 @@ case "$1" in fi ;; status) - status gdm + status gdm gdm-binary exit $? ;; restart|force-reload)