# 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
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