3 # entrance: Starts the Enlighted Display Manager
5 # Version: @(#) /etc/rc.d/init.d/entrance 0.1
8 # description: Starts and stops the Enlighted Display Manager at startup and \
11 # config: /etc/X11/entrance/build_config.sh.in
15 . /etc/rc.d/init.d/functions
18 if [ -f /etc/sysconfig/entrance ]; then
19 . /etc/sysconfig/entrance
23 # See how we were called.
26 # Check if the service is already running?
27 if [ ! -f /var/lock/subsys/entrance ]; then
28 msg_starting "Enlightened Display Manager"
29 /usr/share/entrance/build_config.sh > /dev/null
30 if [ -r /etc/entrance_config.cfg ]; then
31 daemon /usr/sbin/entranced
33 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/entrance
38 msg_already_running "Enlightened Display Manager"
42 if [ -f /var/lock/subsys/entrance ]; then
43 msg_stopping "Enlightened Display Manager"
45 rm -f /var/lock/subsys/entrance
47 msg_not_running "Enlightened Display Manager"
60 msg_usage "$0 {start|stop|restart|force-reload|status}"