34 lines
		
	
	
		
			579 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			579 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # start/stop inetd super server.
 | |
| 
 | |
| if ! [ -x /usr/sbin/inetd ]; then
 | |
| 	exit 0
 | |
| fi
 | |
| 
 | |
| case "$1" in
 | |
|     start)
 | |
| 	echo -n "Starting internet superserver:"
 | |
| 	echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null
 | |
| 	echo "."
 | |
| 	;;
 | |
|     stop)
 | |
| 	echo -n "Stopping internet superserver:"
 | |
| 	echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null
 | |
| 	echo "."
 | |
| 	;;
 | |
|     restart)
 | |
| 	echo -n "Restarting internet superserver:"
 | |
| 	echo -n " inetd "
 | |
| 	killall -HUP inetd
 | |
| 	echo "."
 | |
| 	;;
 | |
|     *)
 | |
| 	echo "Usage: /etc/init.d/inetd {start|stop|restart}"
 | |
| 	exit 1
 | |
| 	;;
 | |
| esac
 | |
| 
 | |
| exit 0
 | |
| 
 | 
