mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-11-04 06:38:04 +00:00 
			
		
		
		
	Rename all instances of Quagga to FRR in red hat package files Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
# chkconfig: - 16 84
 | 
						|
# config: /etc/frr/ospf6d.conf
 | 
						|
 | 
						|
### BEGIN INIT INFO
 | 
						|
# Provides: ospf6d
 | 
						|
# Short-Description: OSPF routing engine for IPv6
 | 
						|
# Description: OSPF routing engine for use with Zebra and IPv6
 | 
						|
### END INIT INFO
 | 
						|
 | 
						|
# source function library
 | 
						|
. /etc/rc.d/init.d/functions
 | 
						|
 | 
						|
# Get network config
 | 
						|
. /etc/sysconfig/network
 | 
						|
 | 
						|
# frr command line options
 | 
						|
. /etc/sysconfig/frr
 | 
						|
 | 
						|
RETVAL=0
 | 
						|
PROG="ospf6d"
 | 
						|
cmd=ospf6d
 | 
						|
LOCK_FILE=/var/lock/subsys/ospf6d
 | 
						|
CONF_FILE=/etc/frr/ospf6d.conf
 | 
						|
 | 
						|
case "$1" in
 | 
						|
  start)
 | 
						|
	# Check that networking is up.
 | 
						|
	[ "${NETWORKING}" = "no" ] && exit 1
 | 
						|
 | 
						|
	# The process must be configured first.
 | 
						|
	[ -f $CONF_FILE ] || exit 6
 | 
						|
	if [ `id -u` -ne 0 ]; then
 | 
						|
		echo $"Insufficient privilege" 1>&2
 | 
						|
		exit 4
 | 
						|
	fi
 | 
						|
 | 
						|
	echo -n $"Starting $PROG: "
 | 
						|
	daemon $cmd -d $OSPF6D_OPTS -f $CONF_FILE
 | 
						|
	RETVAL=$?
 | 
						|
	[ $RETVAL -eq 0 ] && touch $LOCK_FILE
 | 
						|
	echo
 | 
						|
	;;
 | 
						|
  stop)
 | 
						|
	echo -n $"Shutting down $PROG: "
 | 
						|
	killproc $cmd
 | 
						|
	RETVAL=$?
 | 
						|
	[ $RETVAL -eq 0 ] && rm -f $LOCK_FILE
 | 
						|
	echo
 | 
						|
	;;
 | 
						|
  restart|reload|force-reload)
 | 
						|
	$0 stop
 | 
						|
	$0 start
 | 
						|
	RETVAL=$?
 | 
						|
	;;
 | 
						|
  condrestart|try-restart)
 | 
						|
	if [ -f $LOCK_FILE ]; then
 | 
						|
		$0 stop
 | 
						|
		$0 start
 | 
						|
	fi
 | 
						|
	RETVAL=$?
 | 
						|
	;;
 | 
						|
  status)
 | 
						|
	status $cmd
 | 
						|
	RETVAL=$?
 | 
						|
	;;
 | 
						|
  *)
 | 
						|
	echo $"Usage: $0 {start|stop|restart|reload|force-reload|condrestart|try-restart|status}"
 | 
						|
	exit 2
 | 
						|
esac
 | 
						|
 | 
						|
exit $RETVAL
 |