head 1.10; access; symbols OPENPKG_E1_MP_HEAD:1.10 OPENPKG_E1_MP:1.10 OPENPKG_E1_MP_2_STABLE:1.9.10.1 OPENPKG_E1_FP:1.9.10.1 OPENPKG_2_STABLE_MP:1.10 OPENPKG_2_STABLE_20061018:1.9.10.1 OPENPKG_2_STABLE_20060622:1.9 OPENPKG_2_STABLE:1.9.0.10 OPENPKG_2_STABLE_BP:1.9 OPENPKG_2_5_RELEASE:1.9 OPENPKG_2_5_SOLID:1.9.0.8 OPENPKG_2_5_SOLID_BP:1.9 OPENPKG_2_4_RELEASE:1.9 OPENPKG_2_4_SOLID:1.9.0.6 OPENPKG_2_4_SOLID_BP:1.9 OPENPKG_CW_FP:1.9 OPENPKG_2_3_RELEASE:1.9 OPENPKG_2_3_SOLID:1.9.0.4 OPENPKG_2_3_SOLID_BP:1.9 OPENPKG_2_2_RELEASE:1.9 OPENPKG_2_2_SOLID:1.9.0.2 OPENPKG_2_2_SOLID_BP:1.9 OPENPKG_2_1_RELEASE:1.7 OPENPKG_2_1_SOLID:1.7.0.4 OPENPKG_2_1_SOLID_BP:1.7 OPENPKG_2_0_RELEASE:1.7 OPENPKG_2_0_SOLID:1.7.0.2 OPENPKG_2_0_SOLID_BP:1.7 OPENPKG_1_STABLE_MP:1.5; locks; strict; comment @# @; 1.10 date 2006.08.25.19.18.53; author rse; state Exp; branches; next 1.9; commitid Tvsj1UyQ8rQ89gKr; 1.9 date 2004.09.20.14.33.33; author rse; state Exp; branches 1.9.10.1; next 1.8; 1.8 date 2004.07.06.11.18.26; author ms; state Exp; branches; next 1.7; 1.7 date 2003.11.27.14.01.16; author ms; state Exp; branches; next 1.6; 1.6 date 2003.10.01.16.02.05; author ms; state Exp; branches; next 1.5; 1.5 date 2003.07.21.08.40.47; author thl; state Exp; branches; next 1.4; 1.4 date 2003.07.19.17.06.24; author rse; state Exp; branches; next 1.3; 1.3 date 2003.07.17.21.35.05; author thl; state Exp; branches; next 1.2; 1.2 date 2003.07.10.07.51.01; author rse; state Exp; branches; next 1.1; 1.1 date 2003.07.08.14.26.43; author thl; state Exp; branches; next ; 1.9.10.1 date 2006.10.16.14.55.35; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.10 log @replace '@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc' in shebang with '@@l_prefix@@/bin/openpkg rc' to allow people who run the rc.xxx scripts directly (as executables) to leverage from the Set-UID functionality @ text @#!@@l_prefix@@/bin/openpkg rc ## ## rc.rdist -- Run-Commands ## %config rdist_enable="$openpkg_rc_def" rdist_log_prolog="true" rdist_log_epilog="true" rdist_log_numfiles="10" rdist_log_minsize="1M" rdist_log_complevel="9" %common rdist_pidfile="@@l_prefix@@/var/rdist/rdist.pid" rdist_cfgfile="@@l_prefix@@/etc/rdist/rdist.conf" rdist_signal () { [ -f $rdist_pidfile ] && kill -$1 `cat $rdist_pidfile` } %status -u @@l_susr@@ -o rdist_usable="unknown" rdist_active="no" rcService rdist enable yes && \ rdist_signal 0 && rdist_active="yes" echo "rdist_enable=\"$rdist_enable\"" echo "rdist_usable=\"$rdist_usable\"" echo "rdist_active=\"$rdist_active\"" %start -u @@l_susr@@ rcService rdist enable yes || exit 0 rcService rdist active yes && exit 0 @@l_prefix@@/sbin/rdist -S -D & echo $! >$rdist_pidfile %stop -u @@l_susr@@ rcService rdist enable yes || exit 0 rcService rdist active no && exit 0 rdist_signal TERM rm -f $rdist_pidfile 2>/dev/null || true %restart -u @@l_susr@@ rcService rdist enable yes || exit 0 rcService rdist active no && exit 0 rc rdist stop sleep 2 rc rdist start %daily -u @@l_susr@@ rcService rdist enable yes || exit 0 shtool rotate -f \ -n ${rdist_log_numfiles} -s ${rdist_log_minsize} -d \ -z ${rdist_log_complevel} -o @@l_susr@@ -g @@l_mgrp@@ -m 644 \ -P "${rdist_log_prolog}" \ -E "${rdist_log_epilog}; rc rdist restart" \ @@l_prefix@@/var/rdist/rdist.log @ 1.9 log @remove lonely logfile rotation comment in rc files @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.9.10.1 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @d1 1 a1 1 #!@@l_prefix@@/bin/openpkg rc @ 1.8 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @a50 2 # rotate logfile @ 1.7 log @correct removal of pid files @ text @d57 1 a57 2 -E "${rdist_log_epilog} && rc rdist restart" \ -E "${rdist_log_epilog}" \ @ 1.6 log @Implement features in ticket #202, but leave this JUNK package broken for now @ text @d40 1 a40 1 rm $rdist_pidfile @ 1.5 log @PR#210: shtool options space before argument @ text @d14 35 d55 1 a55 1 -z ${rdist_log_complevel} -o @@l_rusr@@ -g @@l_rgrp@@ -m 644 \ d57 1 @ 1.4 log @replace opXXXX with rcXXXX (PR#207) @ text @d19 2 a20 2 -n${rdist_log_numfiles} -s${rdist_log_minsize} -d \ -z${rdist_log_complevel} -o@@l_rusr@@ -g@@l_rgrp@@ -m644 \ @ 1.3 log @migrate opServiceEnabled to opService ... enable yes; use new bootstrap feature and apply opService short circuit to %env @ text @d15 1 a15 1 opService rdist enable yes || exit 0 @ 1.2 log @use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable @ text @d15 1 a15 1 opServiceEnabled rdist || exit 0 @ 1.1 log @add fsl support; fix indentation @ text @d7 1 a7 1 rdist_enable="yes" @