Magellan Linux

Annotation of /branches/unlabeled-1.1.1/magellan-initscripts/etc/rc.d/init.d/inetd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations) (download)
Mon Dec 13 22:52:07 2004 UTC (19 years, 4 months ago) by niro
File size: 722 byte(s)
imported.

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

Properties

Name Value
svn:executable *