commit 714f21b9752703ff2eb057a618a154b5f981e4d0 Author: kueller Date: Mon Jan 3 10:48:06 2011 +0000 Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_cron@5933 504e572c-2e33-0410-9681-be2bf7408885 diff --git a/etc/init.d/cron b/etc/init.d/cron new file mode 100644 index 0000000..f7f3508 --- /dev/null +++ b/etc/init.d/cron @@ -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 diff --git a/etc/init/cron.conf b/etc/init/cron.conf new file mode 100644 index 0000000..7e821e4 --- /dev/null +++ b/etc/init/cron.conf @@ -0,0 +1,13 @@ +description "Startup Cron sheduling daemon" +author "Harald Kueller " +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 + diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..064c869 --- /dev/null +++ b/init/genpkg @@ -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