]> git.pld-linux.org Git - packages/bootsplash.git/blobdiff - bootsplash.init
- leave subsys, no deamon there, just console setting utility
[packages/bootsplash.git] / bootsplash.init
index a57d2d75b26a2eca843c44edd79f65ae73349305..3c4b54f65f84b28abf38c83770605256d2423bf8 100644 (file)
@@ -20,13 +20,13 @@ RES=`fbresolution`
 
 # See how we were called.
 case "$1" in
-  start)
+  start|restart|reload|force-reload)
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/bootsplash ]; then
                
                for console in $BOOT_SPLASH_CONSOLES; do
                    msg_starting "bootsplash terminal $console" 
-                   daemon /bin/splash.bin -s -u $console "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
+                   daemon /bin/splash.bin -s -u $console -n "/etc/bootsplash/themes/$THEME/config/bootsplash-$RES.cfg"
                done
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/bootsplash
@@ -35,23 +35,11 @@ case "$1" in
        fi
        ;;
   stop)
-       if [ -f /var/lock/subsys/bootsplash ]; then
-               # Stop daemons.
-               msg_stopping bootsplash
-               #killproc bootsplash
-               rm -f /var/lock/subsys/bootsplash
-       else
-               msg_not_running bootsplash
-       fi
-       ;;
-  restart)
-       $0 stop
-       $0 start
-       exit $?
+       rm -f /var/lock/subsys/bootsplash
        ;;
   *)
        # show "Usage: %s {start|stop|restart}"
-       msg_usage "$0 {start|stop|restart}"
+       msg_usage "$0 {start|stop|restart|reload|force-reload}"
        exit 3
 esac
 
This page took 0.048505 seconds and 4 git commands to generate.