rwall/rwalld.init

96 lines
1.8 KiB
Plaintext
Raw Normal View History

auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
#! /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
### BEGIN INIT INFO
# Provides: rpc.rwalld
# Required-Start: $syslog $network
# Required-Stop: $syslog $network
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Short-Description: start and stop rpc.rwalld
# 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).
### END INIT INFO
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
# Source function library.
. /etc/init.d/functions
# Get config.
. /etc/sysconfig/network
RETVAL=0
prog="rwalld"
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
start() {
if [ $UID -ne 0 ] ; then
#user had insufficient privilege
exit 4
fi
# Check that networking is up.
if [ ${NETWORKING} = "no" ] ; then
exit 6
fi
echo -n $"Starting $prog: "
daemon rpc.rwalld
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/rwalld
return $RETVAL
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
}
stop() {
if [ $UID -ne 0 ] ; then
#user had insufficient privilege
exit 4
fi
echo -n $"Stopping $prog: "
killproc rpc.rwalld
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/rwalld
return $RETVAL
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
}
restart() {
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status rpc.rwalld
RETVAL=$?
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
;;
condrestart)
[ -f /var/lock/subsys/rwalld ] && restart || :
;;
force-reload)
restart
;;
restart)
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
restart
;;
reload)
RETVAL=3
;;
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
RETVAL=2
auto-import changelog data from rwall-0.17-5.src.rpm Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> - condrestart fixes Thu Jul 20 2000 Bill Nottingham <notting@redhat.com> - move initscript back Wed Jul 12 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Mon Jul 10 2000 Preston Brown <pbrown@redhat.com> - move initscript Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com> - FHS packaging. - update to 0.17. Fri Feb 11 2000 Bill Nottingham <notting@redhat.com> - fix description Mon Feb 07 2000 Jeff Johnson <jbj@redhat.com> - compress man pages. Sat Feb 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - change %postun to %preun Wed Feb 02 2000 Cristian Gafton <gafton@redhat.com> - fix descriptions and summary - man pages are compressed Tue Jan 04 2000 Bill Nottingham <notting@redhat.com> - split client and server Tue Dec 21 1999 Jeff Johnson <jbj@redhat.com> - update to 0.16. Mon Aug 16 1999 Bill Nottingham <notting@redhat.com> - initscript munging Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 22) Mon Mar 15 1999 Jeff Johnson <jbj@redhat.com> - compile for 6.0. Tue May 05 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat May 02 1998 Cristian Gafton <gafton@redhat.com> - enhanced initscript Tue Oct 28 1997 Erik Troan <ewt@redhat.com> - fixed init script (didn't include function library) - doesn't invoke wall with -n anymore Sun Oct 19 1997 Erik Troan <ewt@redhat.com> - added a chkconfig compatible initscript - added %attr attributes Tue Jul 15 1997 Erik Troan <ewt@redhat.com> - initial build
2004-09-09 11:55:34 +00:00
;;
esac
exit $RETVAL