|
|
Jump to this file's LXR Page |
|
|
File: [CENS] / emstar / fusd / initscripts / fusdd-debian
(download)
Revision: 1.5, Fri Jul 1 17:21:57 2005 UTC (4 years, 4 months ago) by mlukac Branch: MAIN CVS Tags: pregeonet, acoustic-05-18-06, PRE_TOSNIC_FIX, PRE_64BIT, LAURA_CALIBRATION_EXPERIMENTS, HEAD, ESS_RELEASE_3_5, ESS_RELEASE_3_4, ESS_RELEASE_3_2, ESS_RELEASE_3_1, ESS_RELEASE_3_0, ESS_RELEASE_2_0, ESS_CONNECTIVITY, ESS_CENTROUTE_TESTING, ESS2-CMS-V1_5_pretest, EMSTAR_RELEASE_2_5, CYCLOPS_RELEASE_CANDIDATE_2_0, CYCLOPS_PRERELEASE_STABLE, CENTROUTE_EMSTAR_SOCKETS, BG_1_0, BANGLADESH_ARSENIC_1_2, BANGLADESH_ARSENIC_1_1, AMARSS_JR_DEPLOYMENT_6_05_07 Changes since 1.4: +3 -3 lines changed insmod to modprobe |
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Created by : eugene@lcs.mit.edu
# Last Modified by: $Author: mlukac $
# Version: $Id: fusdd-debian,v 1.5 2005/07/01 18:21:57 mlukac Exp $
#
# eugene: you need to run update-rc.d <script-name> to insure that fusdd
# will run at boot time. Note that this script SHOULD work on all
# debian-based platforms including the ipaq-sa (Familiar) -- tested only on
# ipaq
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# eugene: change the following to match the location of fusdd
FUSDD_PATH=/usr/sbin
NAME=fusdd
DAEMON=$FUSDD_PATH/$NAME
DESC="FUSD daemon"
if [ -f $DAEMON ] ; then
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --exec $DAEMON
/sbin/modprobe kfusd &> /dev/null # load the kfusd kernel driver
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile --exec $DAEMON
killall $NAME # just to make sure
/sbin/rmmod kfusd
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --exec $DAEMON
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
else
echo "Cannot find $DAEMON.";
exit 1;
fi
exit 0
| CENS CVS Mailing List |
Powered by ViewCVS 0.9.2 |