|
Apache/2.2.15 (CentOS) Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 uid=48(apache) gid=48(apache) groups=48(apache) server ip : 104.21.65.202 | your ip : 10.244.126.0 safemode OFF > / etc / rc.d / rc0.d / |
| Filename | /etc/rc.d/rc0.d/K89rdisc |
| Size | 1.48 kb |
| Permission | rwxr-xr-x |
| Owner | apache |
| Create time | 23-Dec-2025 17:41 |
| Last modified | 07-Dec-2016 18:41 |
| Last accessed | 21-Apr-2026 21:08 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
#!/bin/bash
#
# $Id$
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO
# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc
# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network
#
# Set default options. Override the defaults and define
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc
[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc
start() {
# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 1
echo -n $"Starting router discovery: "
if [ $UID -ne 0 ]; then
RETVAL=4
failure
else
daemon /sbin/rdisc $RDISCOPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $LOCKFILE
fi;
echo
return $RETVAL
}
stop() {
echo -n $"Shutting down router discovery services: "
if [ $UID -ne 0 ]; then
RETVAL=4
failure
else
killproc /sbin/rdisc
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
fi;
echo
return $RETVAL
}
restart() {
stop
start
}
RETVAL=0
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status rdisc
;;
restart|reload)
restart
;;
condrestart)
if status $prog > /dev/null; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload}"
exit 2
esac
exit $?
#
# $Id$
#
### BEGIN INIT INFO
# Provides: rdisc
# Short-Description: This is a daemon which discovers routers on the local subnet.
# Description: This is a daemon which discovers routers on the local subnet.
### END INIT INFO
# chkconfig: - 41 89
# config: /etc/sysconfig/rdisc
# Source function library.
. /etc/init.d/functions
. /etc/sysconfig/network
#
# Set default options. Override the defaults and define
# custom options in /etc/sysconfig/rdisc
#
RDISCOPTS="-s"
LOCKFILE=/var/lock/subsys/rdisc
[ -f /etc/sysconfig/rdisc ] && . /etc/sysconfig/rdisc
start() {
# Check that networking is configured.
[ ${NETWORKING} = "no" ] && exit 1
echo -n $"Starting router discovery: "
if [ $UID -ne 0 ]; then
RETVAL=4
failure
else
daemon /sbin/rdisc $RDISCOPTS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $LOCKFILE
fi;
echo
return $RETVAL
}
stop() {
echo -n $"Shutting down router discovery services: "
if [ $UID -ne 0 ]; then
RETVAL=4
failure
else
killproc /sbin/rdisc
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
fi;
echo
return $RETVAL
}
restart() {
stop
start
}
RETVAL=0
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status rdisc
;;
restart|reload)
restart
;;
condrestart)
if status $prog > /dev/null; then
stop
start
fi
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload}"
exit 2
esac
exit $?