From: kloczek Date: Wed, 22 Dec 1999 00:26:57 +0000 (+0000) Subject: - fixed start target, X-Git-Tag: XFree86-3_3_5-19 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=2fc4a327e7f706a24503015eafba881ce651e05f;hp=c129eaaae9a114c20e02195096fc55e39bf1a31f;p=packages%2FX11.git - fixed start target, - touch touch /var/lock/subsys/xdm only after starting xdm. Changed files: xdm.init -> 1.3 --- diff --git a/xdm.init b/xdm.init index 90c176a..2325169 100644 --- a/xdm.init +++ b/xdm.init @@ -22,14 +22,15 @@ fi # See how we were called. case "$1" in + start) # Check if the service is already running? - if [ ! -f /var/lock/subsys/xdm ]; then + if [ -f /var/lock/subsys/xdm ]; then + echo "Starting X Display Manager already is running" + else show Starting X Display Manager daemon daemon /usr/X11R6/bin/xdm - else - echo "Starting X Display Manager already is running" + touch /var/lock/subsys/xdm fi - touch /var/lock/subsys/xdm ;; stop) show Stopping X Display Manager daemon