331dc9ef15
Tue Feb 13 2001 Florian La Roche <Florian.LaRoche@redhat.de> - also set $prog to rwalld to get it working Tue Feb 13 2001 Florian La Roche <Florian.LaRoche@redhat.de> - use $prog instead of $0 for nicer output Thu Feb 08 2001 Preston Brown <pbrown@redhat.com> - fix up init script to use $0 for i18n reasons (#26566). Mon Feb 05 2001 Bernhard Rosenkraenzer <bero@redhat.com> - i18nize init script (#26081)
70 lines
1.0 KiB
Bash
Executable File
70 lines
1.0 KiB
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# chkconfig: - 60 20
|
|
# description: The rwall protocol allows remote users to display messages \
|
|
# on all of the active terminals on a system (like local \
|
|
# users can do with the wall command).
|
|
# processname: rpc.rwalld
|
|
|
|
# Source function library.
|
|
. /etc/init.d/functions
|
|
|
|
# Get config.
|
|
. /etc/sysconfig/network
|
|
|
|
# Check that networking is up.
|
|
if [ ${NETWORKING} = "no" ] ; then
|
|
exit 0
|
|
fi
|
|
|
|
RETVAL=0
|
|
prog="rwalld"
|
|
|
|
start() {
|
|
echo -n $"Starting $prog: "
|
|
daemon rpc.rwalld
|
|
RETVAL=$?
|
|
echo
|
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rwalld
|
|
return $RETVAL
|
|
}
|
|
|
|
stop() {
|
|
echo -n $"Stopping $prog: "
|
|
killproc rpc.rwalld
|
|
RETVAL=$?
|
|
echo
|
|
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rwalld
|
|
return $RETVAL
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
status rpc.rwalld
|
|
;;
|
|
condrestart)
|
|
[ -f /var/lock/subsys/rwalld ] && restart || :
|
|
;;
|
|
restart|reload)
|
|
restart
|
|
;;
|
|
*)
|
|
echo $"Usage: $0 {start|stop|status|restart}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit $?
|