From 7c2add23fba2a8b1adf5ee2fcdf8f7522ee213ce Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 19 Apr 2006 12:10:55 +0000 Subject: enable start of cron service git-svn-id: http://svn.openslx.org/svn/openslx/ld4@189 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/distro-specs/debian/functions-3.1 | 2 ++ initrd/distro-specs/suse/functions-9.3 | 5 +++-- initrd/distro-specs/ubuntu/functions-5.10 | 7 ++++--- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'initrd/distro-specs') diff --git a/initrd/distro-specs/debian/functions-3.1 b/initrd/distro-specs/debian/functions-3.1 index 1e3e1aa7..144a7774 100644 --- a/initrd/distro-specs/debian/functions-3.1 +++ b/initrd/distro-specs/debian/functions-3.1 @@ -83,6 +83,8 @@ fi config_cron () { if [ "x$start_cron" = "xyes" ] ; then if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" "18" "02" + # fixme! check for proper pathes testmkd /mnt/var/spool/cron/lastrun testmkd /mnt/var/spool/cron/tabs echo -e "# /etc/crontab - file generated by $0:\n\ diff --git a/initrd/distro-specs/suse/functions-9.3 b/initrd/distro-specs/suse/functions-9.3 index e5470bb8..6c18677c 100644 --- a/initrd/distro-specs/suse/functions-9.3 +++ b/initrd/distro-specs/suse/functions-9.3 @@ -4,11 +4,11 @@ # functions file). This file is the main base for the # following SuSE distributions # -# Author(s): Dirk von Suchodoletz , 12-04-2006 +# Author(s): Dirk von Suchodoletz , 19-04-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # -# Version: 0.2.2b +# Version: 0.2.2c # distro specific stuff to initialize preinit () { @@ -101,6 +101,7 @@ fi config_cron () { if [ "x$start_cron" = "xyes" ] ; then if [ -f /mnt/etc/${D_INITDIR}/cron ] ; then + rllinker "cron" "18" "02" testmkd /mnt/var/spool/cron/lastrun testmkd /mnt/var/spool/cron/tabs echo -e "# /etc/crontab - file generated by $0:\n\ diff --git a/initrd/distro-specs/ubuntu/functions-5.10 b/initrd/distro-specs/ubuntu/functions-5.10 index e2834835..7282e302 100644 --- a/initrd/distro-specs/ubuntu/functions-5.10 +++ b/initrd/distro-specs/ubuntu/functions-5.10 @@ -2,7 +2,7 @@ # linux diskless clients (executed within initial # ramdisk after genconfig) # -# Author(s): Dirk von Suchodoletz , 12-04-2006 +# Author(s): Dirk von Suchodoletz , 19-04-2006 # Nico Dietrich # Felix Endres # @@ -111,8 +111,9 @@ fi config_cron () { if [ "x$start_cron" = "xyes" ] ; then if [ -f /mnt/etc/init.d/cron ] ; then - testmkd /mnt/var/spool/cron/lastrun - testmkd /mnt/var/spool/cron/tabs + rllinker "cron" "18" "02" + # fixme! check for proper permissions! + testmkd /mnt/var/spool/crontabs echo -e "# /etc/crontab - file generated by $0:\n\ #\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ \nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ -- cgit v1.2.3-55-g7522