Magellan Linux

Annotation of /trunk/magellan-initscripts/etc/rc.d/init.d/inetd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 71 - (hide annotations) (download)
Tue Mar 15 19:07:56 2005 UTC (19 years, 2 months ago) by niro
File size: 850 byte(s)
updated header and fixed whitespaces

1 niro 2 #!/bin/sh
2 niro 71 # $Header: /home/cvsd/magellan-cvs/magellan-src/magellan-initscripts/etc/rc.d/init.d/inetd,v 1.2 2005-03-15 19:07:56 niro Exp $
3 niro 2
4     #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k
5     #%start: 22
6     #%stop: 44
7    
8     #deps
9     #%needs:
10     #%before:
11     #%after:
12    
13     source /etc/sysconfig/rc
14     source $rc_functions
15    
16     case $1 in
17     start)
18     echo -e ${COLOREDSTAR}"Starting inetd server ..."
19     loadproc /usr/sbin/inetd
20    
21     update_svcstatus $1
22     splash svc_started "$(basename $0)" 0
23     ;;
24     stop)
25     echo -e ${COLOREDSTAR}"Stopping inetd server ..."
26     killproc inetd
27    
28     update_svcstatus $1
29     splash svc_stopped "$(basename $0)" 0
30     ;;
31    
32     reload)
33     echo -e ${COLOREDSTAR}"Reloading inetd server ..."
34     reloadproc /usr/sbin/inetd
35     ;;
36    
37     restart)
38     $0 stop
39     sleep 1
40     $0 start
41     ;;
42    
43     status)
44     statusproc inetd
45     ;;
46    
47     *)
48     echo "Usage: $0 {start|stop|reload|restart|status}"
49     exit 1
50     ;;
51     esac

Properties

Name Value
svn:executable *