Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cron@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
714f21b975
50
etc/init.d/cron
Normal file
50
etc/init.d/cron
Normal file
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
# Begin /etc/init.d/network
|
||||
# Script zum start des automount Daemons
|
||||
# Wenn die Datei /etc/sysconfig/auto.master vorhanden ist, wird
|
||||
# der automount Daemon gestartet
|
||||
# Die Timeout Konfiguration erfolg über die Datei /etc/sysconfig/autofstime
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
#$Author$
|
||||
#$Date$
|
||||
#$Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.2 2003/04/19 08:16:47 kueller
|
||||
#Restart Option hinzugefügt
|
||||
#
|
||||
#Revision 1.1.1.1 2001/09/22 23:34:03 kueller
|
||||
#neustart wg. datenverlust
|
||||
#
|
||||
#Revision 1.2 2001/08/24 18:31:15 kueller
|
||||
#
|
||||
#Da cron durch fcron ersetzt wurde, muß hier auch der Aufruf anders lauten!
|
||||
#
|
||||
#Revision 1.1.1.1 2001/08/08 10:16:26 kueller
|
||||
#cron AddOns
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
source /etc/init.d/functions
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "starting crondaemon"
|
||||
loadproc /usr/sbin/fcron
|
||||
;;
|
||||
stop)
|
||||
echo -n "shutting down crondaemon"
|
||||
killproc fcron
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0: {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
#end /etc/inet.d/network
|
13
etc/init/cron.conf
Normal file
13
etc/init/cron.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
description "Startup Cron sheduling daemon"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
version 1.0
|
||||
emits none special
|
||||
|
||||
start on (runlevel [2345] and (started mountfs))
|
||||
stop on runlevel [016]
|
||||
|
||||
console none
|
||||
|
||||
respawn
|
||||
exec /usr/sbin/fcron -f
|
||||
|
30
init/genpkg
Normal file
30
init/genpkg
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
#genpkg script für cron package
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
#$Author$
|
||||
#$Date$
|
||||
#$Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.1 2001/09/22 23:34:03 kueller
|
||||
#Initial revision
|
||||
#
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../cron K85cron
|
||||
cd ..
|
||||
done
|
||||
for i in 2 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../cron S07cron
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
Loading…
Reference in New Issue
Block a user