]> git.pld-linux.org Git - packages/bootparamd.git/blob - bootparamd.init
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
[packages/bootparamd.git] / bootparamd.init
1 #! /bin/sh
2 #
3 # chkconfig:    - 60 20
4 # description:  The bootparamd server allows older Sun workstations to \
5 #               net boot from Linux boxes. It (along with rarp) is rarely \
6 #               used anymore; bootp and dhcp have mostly replaced both of them.
7 # processname:  rpc.bootparamd
8 # config:       /etc/bootparams
9
10 # Source function library.
11 . /etc/rc.d/init.d/functions
12
13 # Get config.
14 . /etc/sysconfig/network
15
16 # Check that networking is up.
17 if is_no "${NETWORKING}"; then
18         msg_Network_Down rwalld
19         exit 1
20 fi
21
22 # See how we were called.
23 case "$1" in
24   start)
25         # Check if the service is already running?
26         if [ ! -f /var/lock/subsys/rpc.bootparamd ]; then
27                 msg_starting rpc.bootparamd
28                 daemon rpc.bootparamd
29                 touch /var/lock/subsys/rpc.bootparamd
30                 RETVAL=$?
31                 if [ $RETVAL -eq 0 ]; then
32                         touch /var/lock/subsys/rpc.bootparamd
33                         RETVAL=1
34                 fi
35         else
36                 msg_Already_Running rpc.bootparamd
37                 exit 1
38         fi
39         ;;
40   stop)
41         if [ -f /var/lock/subsys/rpc.bootparamd ]; then
42                 msg_stopping rpc.bootparamd
43                 killproc rpc.bootparamd
44                 rm -f /var/lock/subsys/rpc.bootparamd >/dev/null 2>&1
45         else
46                 msg_Not_Running rpc.bootparamd
47                 exit 1
48         fi      
49         ;;
50   status)
51         status rpc.bootparamd
52         ;;
53   reload|restart|force-reload)
54         $0 stop
55         $0 start
56         ;;
57   *)
58         msg_Usage "$0 {start|stop|status|restart|reload|force-reload}"
59         exit 1
60         ;;
61 esac
62
63 exit $RETVAL
This page took 0.067194 seconds and 3 git commands to generate.