head 1.6; access; symbols OPENPKG_E1_MP_HEAD:1.6 OPENPKG_E1_MP:1.6 OPENPKG_E1_MP_2_STABLE:1.5.6.1 OPENPKG_E1_FP:1.5.6.1 OPENPKG_2_STABLE_MP:1.6 OPENPKG_2_STABLE_20061018:1.5.6.1 OPENPKG_2_STABLE_20060622:1.5 OPENPKG_2_STABLE:1.5.0.6 OPENPKG_2_STABLE_BP:1.5 OPENPKG_2_5_RELEASE:1.5 OPENPKG_2_5_SOLID:1.5.0.4 OPENPKG_2_5_SOLID_BP:1.5 OPENPKG_2_4_RELEASE:1.5 OPENPKG_2_4_SOLID:1.5.0.2 OPENPKG_2_4_SOLID_BP:1.5 OPENPKG_CW_FP:1.4 OPENPKG_2_3_RELEASE:1.4 OPENPKG_2_3_SOLID:1.4.0.4 OPENPKG_2_3_SOLID_BP:1.4 OPENPKG_2_2_RELEASE:1.4 OPENPKG_2_2_SOLID:1.4.0.2 OPENPKG_2_2_SOLID_BP:1.4 OPENPKG_2_1_RELEASE:1.2 OPENPKG_2_1_SOLID:1.2.0.4 OPENPKG_2_1_SOLID_BP:1.2 OPENPKG_2_0_RELEASE:1.2 OPENPKG_2_0_SOLID:1.2.0.2 OPENPKG_2_0_SOLID_BP:1.2 OPENPKG_1_3_RELEASE:1.1.2.1 OPENPKG_1_3_SOLID:1.1.2.1.0.2 OPENPKG_1_3_SOLID_BP:1.1.2.1 OPENPKG_1_STABLE_MP:1.1 OPENPKG_1_STABLE:1.1.0.2; locks; strict; comment @# @; 1.6 date 2006.08.25.19.16.11; author rse; state Exp; branches; next 1.5; commitid Tvsj1UyQ8rQ89gKr; 1.5 date 2005.06.08.05.35.09; author mk; state Exp; branches 1.5.6.1; next 1.4; 1.4 date 2004.09.20.14.33.22; author rse; state Exp; branches; next 1.3; 1.3 date 2004.07.06.11.18.08; author ms; state Exp; branches; next 1.2; 1.2 date 2004.01.08.15.55.33; author cs; state Exp; branches; next 1.1; 1.1 date 2003.07.28.20.24.47; author thl; state Exp; branches 1.1.2.1; next ; 1.5.6.1 date 2006.10.16.14.49.25; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; 1.1.2.1 date 2003.07.29.10.11.36; author rse; state Exp; branches; next ; desc @@ 1.6 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.delegate -- Run-Commands ## %config delegate_enable="$openpkg_rc_def" delegate_bind="127.0.0.1" delegate_port="8080" delegate_log_prolog="true" delegate_log_epilog="true" delegate_log_numfiles="10" delegate_log_minsize="1M" delegate_log_complevel="9" %common delegate_pidfile="@@l_prefix@@/var/delegate/delegate.pid" delegate_signal () { [ -f $delegate_pidfile ] && kill -$1 `cat $delegate_pidfile` } delegate_start () { @@l_prefix@@/sbin/delegated \ -P${delegate_bind}${delegate_bind:+:}${delegate_port:-8080} \ +=@@l_prefix@@/etc/delegate/delegated.cf } delegate_stop () { delegate_signal TERM rm -f $delegate_pidfile 2>/dev/null || true } %status -u @@l_rusr@@ -o delegate_usable="unknown" delegate_active="no" rcService delegate enable yes && \ delegate_signal 0 && delegate_active="yes" echo "delegate_enable=\"$delegate_enable\"" echo "delegate_usable=\"$delegate_usable\"" echo "delegate_active=\"$delegate_active\"" %start -u @@l_rusr@@ rcService delegate enable yes || exit 0 rcService delegate active yes && exit 0 delegate_start %stop -u @@l_rusr@@ rcService delegate enable yes || exit 0 rcService delegate active no && exit 0 delegate_stop %restart -u @@l_rusr@@ rcService delegate enable yes || exit 0 rcService delegate active no && exit 0 rc delegate stop start %daily -u @@l_susr@@ rcService delegate enable yes || exit 0 shtool rotate -f \ -n ${delegate_log_numfiles} -s ${delegate_log_minsize} -d \ -z ${delegate_log_complevel} -m 644 -o @@l_rusr@@ -g @@l_rgrp@@ \ -P "${delegate_log_prolog}" \ -E "${delegate_log_epilog}; rc delegate restart" \ "@@l_prefix@@/var/delegate/abort.log" \ "@@l_prefix@@/var/delegate/common.log" \ "@@l_prefix@@/var/delegate/error.log" \ "@@l_prefix@@/var/delegate/proto.log" \ "@@l_prefix@@/var/delegate/trace.log" @ 1.5 log @modifying package: delegate-8.11.4 20050607 -> 20050608 @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.5.6.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.4 log @remove lonely logfile rotation comment in rc files @ text @d62 5 a66 5 @@l_prefix@@/var/delegate/abort.log" \ @@l_prefix@@/var/delegate/common.log" \ @@l_prefix@@/var/delegate/error.log" \ @@l_prefix@@/var/delegate/proto.log" \ @@l_prefix@@/var/delegate/trace.log" @ 1.3 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @a56 2 # rotate logfile @ 1.2 log @several fixes @ text @d63 1 a63 1 -E "${delegate_log_epilog} && rc delegate restart" \ @ 1.1 log @PR#202 run-time check and related issues @ text @a7 1 delegate_params="" d24 1 a24 8 OWNER="@@l_musr@@/@@l_mgrp@@" \ DGROOT="@@l_prefix@@/var/delegate" \ LOGDIR="@@l_prefix@@/var/delegate" \ LOGFILE="common.log" \ PROTOLOG="proto.log" \ ERRORLOG="error.log" \ TRACELOG="trace.log" \ PIDFILE=$delegate_pidfile $delegate_params d31 1 a31 1 %status -u @@l_susr@@ -o d40 1 a40 1 %start -u @@l_susr@@ d45 1 a45 1 %stop -u @@l_susr@@ d50 1 a50 1 %restart -u @@l_susr@@ d61 1 a61 1 -z ${delegate_log_complevel} -m 644 -o @@l_musr@@ -g @@l_mgrp@@ \ d64 1 d66 1 a67 1 @@l_prefix@@/var/delegate/error.log" \ @ 1.1.2.1 log @MFC: all changes since last merge @ text @@