From 2e487bbc7a29fd005b8e22df1de4a1589d7da7a1 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Tue, 8 Mar 2011 03:48:01 +0000 Subject: [PATCH] Lancement de configure a chaque demarrage de fcron --- stage3/TODO | 2 -- stage3/bootscripts/fcron | 8 +++++++- stage3/pkg/fcron | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/stage3/TODO b/stage3/TODO index b2c12f1..4a60846 100644 --- a/stage3/TODO +++ b/stage3/TODO @@ -25,8 +25,6 @@ XF86: Clavier selon sysinfos, et aussi loadkeys selon sysinfos. Combiner les deux variables en une seule (utiliser un tableau pour sélectionner ensuite les deux valeurs distinctes). -Server: install Lynx text-based browser - Créer un répertoire unique pour les icons et copier tous les icons dedans "/usr/share/icons" par exemple. diff --git a/stage3/bootscripts/fcron b/stage3/bootscripts/fcron index d26e880..9fd60a8 100755 --- a/stage3/bootscripts/fcron +++ b/stage3/bootscripts/fcron @@ -7,10 +7,16 @@ source /etc/rc.d/init.d/functions log_script_name "$0 $*" +fcron_start() +{ + /etc/fcron/configure + loadproc fcron -b -c /etc/fcron/fcron.conf +} + # See how we were called. case "$1" in start) - cmd_run_log_box_warn "Starting fcron" loadproc fcron -b -c /etc/fcron/fcron.conf + cmd_run_log_box_warn "Starting fcron" fcron_start ;; stop) diff --git a/stage3/pkg/fcron b/stage3/pkg/fcron index 46bd07d..4b8c768 100644 --- a/stage3/pkg/fcron +++ b/stage3/pkg/fcron @@ -70,6 +70,7 @@ for f in /etc/fcron/fcron.d/*; do cat $f >> /etc/fcron/fcron.tab done +chown -R root:fcron /etc/fcron chmod 640 /etc/fcron/fcron.tab fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcron.tab -- 2.20.1