Contents of /trunk/inetutils/inetd.rc
Parent Directory | Revision Log
Revision 723 -
(show annotations)
(download)
Mon Dec 22 22:42:18 2008 UTC (15 years, 9 months ago) by niro
File size: 809 byte(s)
Mon Dec 22 22:42:18 2008 UTC (15 years, 9 months ago) by niro
File size: 809 byte(s)
-fixed moved rc
1 | #!/bin/sh |
2 | # $Header: /root/magellan-cvs/src/inetutils/inetd.rc,v 1.2 2008-12-22 22:42:18 niro Exp $ |
3 | |
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/conf.d/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 | * |