summaryrefslogtreecommitdiffstats
path: root/initrd
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-04-19 14:10:55 +0200
committerDirk von Suchodoletz2006-04-19 14:10:55 +0200
commit7c2add23fba2a8b1adf5ee2fcdf8f7522ee213ce (patch)
tree8f498128f64684054469983c9bf2e188dd78abbb /initrd
parentdefaults changed to full path (diff)
downloadcore-7c2add23fba2a8b1adf5ee2fcdf8f7522ee213ce.tar.gz
core-7c2add23fba2a8b1adf5ee2fcdf8f7522ee213ce.tar.xz
core-7c2add23fba2a8b1adf5ee2fcdf8f7522ee213ce.zip
enable start of cron service
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@189 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd')
-rw-r--r--initrd/distro-specs/debian/functions-3.12
-rw-r--r--initrd/distro-specs/suse/functions-9.35
-rw-r--r--initrd/distro-specs/ubuntu/functions-5.107
-rwxr-xr-xinitrd/initrd-stuff/bin/servconfig8
4 files changed, 13 insertions, 9 deletions
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 <dirk@goe.net>, 12-04-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 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 <dirk@goe.net>, 12-04-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 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 && \
diff --git a/initrd/initrd-stuff/bin/servconfig b/initrd/initrd-stuff/bin/servconfig
index c270ae5f..59e4709f 100755
--- a/initrd/initrd-stuff/bin/servconfig
+++ b/initrd/initrd-stuff/bin/servconfig
@@ -4,7 +4,7 @@
# for linux diskless clients (executed within initial
# ramdisk)
#
-# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 12-04-2006
+# Author(s): Dirk von Suchodoletz <dirk@goe.net>, 19-04-2006
#
# Copyright: (c) 2006 - RZ Universitaet Freiburg
#
@@ -165,16 +165,16 @@ fi
# basic (non network) services
# at daemon - calling distro specific function config_atd
-config_atd "14" "04"
+config_atd
# configuration of cron services - calling distro specific function
# config_cron (runlevel links, directories, ...)
[ "x$crontab_entries" != "x" ] && \
echo -e "$crontab_entries" >> /mnt/etc/crontab
-config_cron "16" "04"
+config_cron
# setup system log services - distro dependent function config_syslog
-config_syslog "02" "20"
+config_syslog
# configure dbus - distro dependent function config_dreshal - handle all
# stuff regarding dependent services like dbus, resmgr, hal ...