"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "blocksshd-1.3/init/blocksshd" of archive blocksshd-1.3.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 #!/bin/sh
2 #
3 # blocksshd This shell script takes care of
4 #
5 # chkconfig: - 55 45
6 # description: blocksshd daemon
7 # probe: true
8
9 # Source function library.
10 . /etc/rc.d/init.d/functions
11
12 # Source networking configuration.
13 . /etc/sysconfig/network
14
15 # Check that networking is up.
16 [ ${NETWORKING} = "no" ] && exit 0
17
18 [ -f /usr/bin/blocksshd ] || exit 0
19
20 [ -f /etc/blocksshd.conf ] || exit 0
21
22 DAEMON=blocksshd
23
24 start() {
25 echo -n "Starting $DAEMON: "
26 daemon /usr/bin/blocksshd --start
27 RETVAL=$?
28 echo
29 [ $RETVAL = 0 ] && touch /var/lock/subsys/blocksshd
30 return $RETVAL
31 }
32
33 stop() {
34 # Stop daemon.
35 echo -n "Shutting down $DAEMON: "
36 killproc /usr/bin/blocksshd #--stop
37 RETVAL=$?
38 echo
39 [ $RETVAL = 0 ] && rm -f /var/lock/subsys/blocksshd
40 }
41
42 # See how we were called.
43 case "$1" in
44 start)
45 start
46 ;;
47 stop)
48 stop
49 ;;
50 reload)
51 $0 stop
52 $0 start
53 exit $?
54 ;;
55 status)
56 status $DAEMON
57 echo
58 ;;
59 *)
60 echo "Usage: blocksshd {start|stop|reloadi|status}"
61 exit 1
62 esac
63
64 exit 0