Magellan Linux

Annotation of /trunk/inetutils/inetd.rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 723 - (hide annotations) (download)
Mon Dec 22 22:42:18 2008 UTC (15 years, 4 months ago) by niro
File size: 809 byte(s)
-fixed moved rc

1 niro 29 #!/bin/sh
2 niro 723 # $Header: /root/magellan-cvs/src/inetutils/inetd.rc,v 1.2 2008-12-22 22:42:18 niro Exp $
3 niro 29
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 niro 723 source /etc/conf.d/rc
14 niro 29 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 *