|
From: <rap...@us...> - 2004-01-05 19:49:27
|
Update of /cvsroot/devil-linux/build/scripts/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv27366/scripts/scripts
Modified Files:
openvpn
Added Files:
smartd
Log Message:
smartd closed
--- NEW FILE: smartd ---
#! /bin/sh
# SMARTMONTOOLS Added by Diego Torres <rap...@an...>
### BEGIN INIT INFO
# Provides: smartd
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 6
# Description: starts the smartd daemon
### END INIT INFO
# settings
source /etc/sysconfig/config
# parameters
NAME="smartd service"
CONFIGNAME=SMARTMONTOOLS
DAEMON=/usr/sbin/smartd
PARAMETER="-p /var/run/smartd.pid -l local0"
# source function library
source /etc/init.d/functions
eval START=\$START_$CONFIGNAME
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START=yes
test "$START" = "yes" || exit 0
if [ ! -e $DAEMON ]; then
echo
echo "$DAEMON not found. Did you install the package?"
exit 1
fi
case "$1" in
start)
echo -n "Starting $NAME "
loadproc ${DAEMON} ${PARAMETER}
;;
stop)
echo -n "Shutting down $NAME "
killproc ${DAEMON}
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
Index: openvpn
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/openvpn,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- openvpn 24 Sep 2003 20:45:51 -0000 1.5
+++ openvpn 5 Jan 2004 19:49:24 -0000 1.6
@@ -56,6 +56,7 @@
echo -n "($c) "
done
killproc ${DAEMON}
+ rmmod tun
;;
restart)
|