1 #! /bin/sh
2 # chkconfig: 2345 100 100
3 # description: fusdd init file for fusdd
4 #
5 # $Id: fusdd-redhat,v 1.3 2005-02-14 07:17:21 girod Exp $
6 #
7
8 # report_unsupported () {
9 # echo "Currently the fusdd package has no init script for"
10 # echo "the $1 Linux distribution."
11 # exit 1
12 # }
13
14 # change the following to your particular path
15 FUSDD_PATH=/usr/sbin
16
17 # Red Hat
18 if [ -f /etc/redhat-release ] ; then
19
20 # Source function library
21 . /etc/rc.d/init.d/functions
22
23 case "$1" in
24 start)
25 echo -n "Starting fusdd: "
26 /sbin/insmod kfusd &> /dev/null # load the kfusd kernel driver
27 daemon $FUSDD_PATH/fusdd
28 touch /var/lock/subsys/fusdd
29 echo
30 ;;
31 stop)
32 echo -n "Shutting down fusdd: "
33 killproc fusdd
34 /sbin/rmmod kfusd
35 rm -f /var/lock/subsys/fusdd
36 echo
37 ;;
38 restart)
39 $0 stop
40 $0 start
41 ;;
42 status)
43 status fusdd
44 ;;
45 *)
46 echo "Usage: fusdd {start|stop|restart|status}"
47 exit 1
48 esac
49
50 exit 0
51
52 fi
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.