rc-scripts/trunk/rc.d/init.d/template.init
glen
cvs at pld-linux.org
Sat Jan 21 14:47:17 CET 2006
Author: glen
Date: Sat Jan 21 14:47:14 2006
New Revision: 6875
Modified:
rc-scripts/trunk/rc.d/init.d/template.init
Log:
- remove old syntax
Modified: rc-scripts/trunk/rc.d/init.d/template.init
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/template.init (original)
+++ rc-scripts/trunk/rc.d/init.d/template.init Sat Jan 21 14:47:14 2006
@@ -27,7 +27,6 @@
# Check that networking is up.
if is_yes "${NETWORKING}"; then
if [ ! -f /var/lock/subsys/network ]; then
- # nls "ERROR: Networking is down. %s can't be run." <service>
msg_network_down <service>
exit 1
fi
@@ -41,25 +40,21 @@
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/<service> ]; then
- # show "Starting %s service" <service>
msg_starting <service>
daemon <service>
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/<service>
else
- # show "%s service is already running." <service>
msg_already_running <service>
fi
;;
stop)
if [ -f /var/lock/subsys/<service> ]; then
# Stop daemons.
- # show "Stopping %s service" <service>
msg_stopping <service>
killproc <service>
rm -f /var/lock/subsys/<service>
else
- # show "%s service is not running." <service>
msg_not_running <service>
fi
;;
@@ -70,12 +65,10 @@
;;
reload)
if [ -f /var/lock/subsys/<service> ]; then
- # show "Reload %s service" <service>
msg_reloading <service>
killproc <service> -HUP
RETVAL=$?
else
- # show "%s service is not running." <service>
msg_not_running <service> >&2
RETVAL=7
fi
@@ -94,7 +87,6 @@
RETVAL=$?
;;
*)
- # show "Usage: %s {start|stop|restart|reload|force-reload|status}"
msg_usage "$0 {start|stop|restart|reload|force-reload|status}"
exit 3
esac
More information about the pld-cvs-commit
mailing list