Fri Aug 18 2000 Trond Eivind Glomsrød <teg@redhat.com - use the server name not the service name for libwrap checking (#16516). The new way was better, but this is sacrificed so old systems will continue to work and the documentation for tcp_wrappers can be correct. Wed Aug 16 2000 Than Ngo <than@redhat.com> - fix initscript, test network file before source it (Bug #16247) Tue Aug 15 2000 Trond Eivind Glomsrød <teg@redhat.com - make the pidfile 0644, not 0300 (#16256) Tue Aug 08 2000 Trond Eivind Glomsrød <teg@redhat.com> - added support for "-pidfile" option (#15531) Fri Aug 04 2000 Trond Eivind Glomsrød <teg@redhat.com> - added patch to ignore .rpmsave, .rpmorig, .rpmnew, ~ suffixed files (#15304) Thu Aug 03 2000 Trond Eivind Glomsrød <teg@redhat.com> - 2.1.8.9pre9, old patches are now integrated. Wed Aug 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - fix converting of "wait" argument (#13884) - remove tcpd and /usr/sbin/tcpd from inetd.conf services before converting - xinetd is linked against tcp_wrappers Mon Jul 31 2000 Trond Eivind Glomsrød <teg@redhat.com> - fix linuxconf restart problem (#14856) - fix conditional restart - mark /etc/xinetd.conf as a configuration file Tue Jul 25 2000 Bill Nottingham <notting@redhat.com> - um, we *need* to prereq /etc/init.d Mon Jul 24 2000 Bernhard Rosenkraenzer <bero@redhat.com> - Don't require /etc/init.d Sat Jul 22 2000 Bill Nottingham <notting@redhat.com> - rebuild Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com> - fix the sections of the man pages (#14244) Tue Jul 18 2000 Trond Eivind Glomsrød <teg@redhat.com> - remove itox, as it wouldn't do the right thing with our configuration - same with xconv.pl - some changes to the installation process Mon Jul 17 2000 Trond Eivind Glomsrød <teg@redhat.com> - move initscript back to /etc/rc.d/init.d Fri Jul 14 2000 Trond Eivind Glomsrød <teg@redhat.com> - change process name in init file Thu Jul 13 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Fri Jul 07 2000 Nalin Dahyabhai <nalin@redhat.com> - start the daemon with the "-reuse" flag Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com> - "Prereq:", not "Requires:" for /etc/init.d Thu Jul 06 2000 Trond Eivind Glomsrød <teg@redhat.com> - require /etc/init.d Wed Jul 05 2000 Florian La Roche <Florian.LaRoche@redhat.com> - upper the number of instances to 60 Sun Jul 02 2000 Nalin Dahyabhai <nalin@redhat.com> - fix a memory-allocation bug Wed Jun 28 2000 Trond Eivind Glomsrød <teg@redhat.com> - 2.1.8.9pre8 Wed Jun 21 2000 Trond Eivind Glomsrød <teg@redhat.com> - moved to /etc/init.d Wed Jun 21 2000 Trond Eivind Glomsrød <teg@redhat.com> - changed specfile and initfile to implement conditional restart Sun Jun 18 2000 Trond Eivind Glomsrød <teg@redhat.com> - 2.1.8.9pre7 - now obsoletes inetd - use %{_tmppath} Sun Jun 04 2000 Trond Eivind Glomsrød <teg@redhat.com> - 2.1.8.9pre6 - added converter script which can convert specified or remaing uncoverted services - use %{_mandir} - removed +x on xinetd.conf Wed May 24 2000 Trond Eivind Glomsrød <teg@redhat.com> - 2.1.8.9pre4 - authpriv patch no longer needed Tue May 23 2000 Trond Eivind Glomsrød <teg@redhat.com> - /etc/xinetd.d is now part of the filesystem package - more fixes to xinetd.init Mon May 22 2000 Trond Eivind Glomsrød <teg@redhat.com> - fixed some obvious bugs in xinetd.init - added a default xinetd.conf - patched xinetd to understand LOG_AUTHPRIV Fri May 19 2000 Trond Eivind Glomsrød <teg@redhat.com> - updated version - removed a define %ver (we already have 2.1.8.9pre9) - removed some extra CFLAGS declarations - added configuration directory, /etc/xinetd.d Mon Feb 21 2000 Tim Powers <timp@redhat.com> - fixed broken postun sections, should have been *preun* - fixed broken gzip of manpages Wed Jan 19 2000 Bernhard Rosenkraenzer <bero@redhat.com> - 2.1.8.8p8 - Fix the init script (Bug #7277) - remove our patches (no longer required) Tue Sep 21 1999 Bill Nottingham <notting@redhat.com> - add -lnsl Tue Sep 07 1999 Tim Powers <timp@redhat.com> - modification top install routine Mon Jul 26 1999 Tim Powers <timp@redhat.com> - updated source to 2.1.8.6b6 - built for 6.1 Mon Apr 26 1999 Bill Nottingham <notting@redhat.com> - update to 2.1.8.6b5 - build for PowerTools Sun Jan 10 1999 Bill Nottingham <notting@redhat.com> - update to 2.1.8.5p2 Tue Dec 01 1998 Bill Nottingham <notting@redhat.com> - intial build
97 lines
1.7 KiB
Bash
97 lines
1.7 KiB
Bash
#! /bin/sh
|
|
#
|
|
# xinetd This starts and stops xinetd.
|
|
#
|
|
# chkconfig: 345 50 50
|
|
# description: xinetd is a powerful replacement for inetd. \
|
|
# xinetd has access control machanisms, extensive \
|
|
# logging capabilities, the ability to make services \
|
|
# available based on time, and can place \
|
|
# limits on the number of servers that can be started, \
|
|
# among other things.
|
|
#
|
|
# processname: /usr/sbin/xinetd
|
|
# config: /etc/sysconfig/network
|
|
# config: /etc/xinetd.conf
|
|
# pidfile: /var/run/xinetd.pid
|
|
|
|
PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
|
|
|
# Source function library.
|
|
. /etc/init.d/functions
|
|
|
|
# Get config.
|
|
test -f /etc/sysconfig/network && . /etc/sysconfig/network
|
|
|
|
# Check that networking is up.
|
|
[ ${NETWORKING} = "yes" ] || exit 0
|
|
|
|
[ -f /usr/sbin/xinetd ] || exit 1
|
|
[ -f /etc/xinetd.conf ] || exit 1
|
|
|
|
RETVAL=0
|
|
|
|
start(){
|
|
echo -n "Starting xinetd: "
|
|
daemon xinetd -reuse -pidfile /var/run/xinetd.pid
|
|
RETVAL=$?
|
|
echo
|
|
touch /var/lock/subsys/xinetd
|
|
return $RETVAL
|
|
}
|
|
|
|
stop(){
|
|
echo -n "Stopping xinetd: "
|
|
killproc xinetd
|
|
RETVAL=$?
|
|
echo
|
|
rm -f /var/lock/subsys/xinetd
|
|
return $RETVAL
|
|
|
|
}
|
|
|
|
reload(){
|
|
echo -n "Reloading configuration: "
|
|
killproc xinetd -USR2
|
|
RETVAL=$?
|
|
echo
|
|
return $RETVAL
|
|
}
|
|
|
|
restart(){
|
|
stop
|
|
start
|
|
}
|
|
|
|
condrestart(){
|
|
[ -e /var/lock/subsys/xinetd ] && restart
|
|
return 0
|
|
}
|
|
|
|
|
|
# See how we were called.
|
|
case "$1" in
|
|
start)
|
|
start
|
|
;;
|
|
stop)
|
|
stop
|
|
;;
|
|
status)
|
|
status xinetd
|
|
;;
|
|
restart)
|
|
restart
|
|
;;
|
|
reload)
|
|
reload
|
|
;;
|
|
condrestart)
|
|
condrestart
|
|
;;
|
|
*)
|
|
echo "Usage: xinetd {start|stop|status|restart|condrestart|reload}"
|
|
RETVAL=1
|
|
esac
|
|
|
|
exit $RETVAL
|