head 1.17; access; symbols OPENPKG_E1_MP_HEAD:1.17 OPENPKG_E1_MP:1.17 OPENPKG_E1_MP_2_STABLE:1.16.10.1 OPENPKG_E1_FP:1.16.10.1 OPENPKG_2_STABLE_MP:1.17 OPENPKG_2_STABLE_20061018:1.16.10.1 OPENPKG_2_STABLE_20060622:1.16 OPENPKG_2_STABLE:1.16.0.10 OPENPKG_2_STABLE_BP:1.16 OPENPKG_2_5_RELEASE:1.16 OPENPKG_2_5_SOLID:1.16.0.8 OPENPKG_2_5_SOLID_BP:1.16 OPENPKG_2_4_RELEASE:1.16 OPENPKG_2_4_SOLID:1.16.0.6 OPENPKG_2_4_SOLID_BP:1.16 OPENPKG_CW_FP:1.16 OPENPKG_2_3_RELEASE:1.16 OPENPKG_2_3_SOLID:1.16.0.4 OPENPKG_2_3_SOLID_BP:1.16 OPENPKG_2_2_RELEASE:1.16 OPENPKG_2_2_SOLID:1.16.0.2 OPENPKG_2_2_SOLID_BP:1.16 OPENPKG_2_1_RELEASE:1.14 OPENPKG_2_1_SOLID:1.14.0.2 OPENPKG_2_1_SOLID_BP:1.14 OPENPKG_2_0_RELEASE:1.13 OPENPKG_2_0_SOLID:1.13.0.2 OPENPKG_2_0_SOLID_BP:1.13 OPENPKG_1_3_RELEASE:1.3.4.2 OPENPKG_1_3_SOLID:1.3.4.2.0.2 OPENPKG_1_3_SOLID_BP:1.3.4.2 OPENPKG_1_STABLE_MP:1.13 OPENPKG_1_2_RELEASE:1.3 OPENPKG_1_2_SOLID:1.3.0.6 OPENPKG_1_2_SOLID_BP:1.3 OPENPKG_1_STABLE:1.3.0.4 OPENPKG_1_STABLE_BP:1.3 OPENPKG_1_1_RELEASE:1.3 OPENPKG_1_1_SOLID:1.3.0.2 OPENPKG_1_1_SOLID_BP:1.3 OPENPKG_1_0_RELEASE:1.2 OPENPKG_1_0_SOLID:1.2.0.2 OPENPKG_1_0_SOLID_BP:1.2 OPENPKG_0_0:1.1.1.1 OPENPKG:1.1.1; locks; strict; comment @# @; 1.17 date 2006.08.25.19.20.13; author rse; state Exp; branches; next 1.16; commitid Tvsj1UyQ8rQ89gKr; 1.16 date 2004.09.20.14.33.41; author rse; state Exp; branches 1.16.10.1; next 1.15; 1.15 date 2004.07.06.11.18.37; author ms; state Exp; branches; next 1.14; 1.14 date 2004.04.27.18.00.16; author rse; state Exp; branches; next 1.13; 1.13 date 2003.07.25.20.03.19; author thl; state Exp; branches 1.13.2.1; next 1.12; 1.12 date 2003.07.25.19.53.10; author thl; state Exp; branches; next 1.11; 1.11 date 2003.07.24.07.03.19; author thl; state Exp; branches; next 1.10; 1.10 date 2003.07.22.08.11.17; author rse; state Exp; branches; next 1.9; 1.9 date 2003.07.21.10.07.55; author mlelstv; state Exp; branches; next 1.8; 1.8 date 2003.07.19.17.06.40; author rse; state Exp; branches; next 1.7; 1.7 date 2003.07.17.21.35.18; author thl; state Exp; branches; next 1.6; 1.6 date 2003.07.10.07.51.18; author rse; state Exp; branches; next 1.5; 1.5 date 2003.06.24.12.08.14; author thl; state Exp; branches; next 1.4; 1.4 date 2003.03.28.14.56.07; author cs; state Exp; branches; next 1.3; 1.3 date 2002.04.19.09.18.10; author ms; state Exp; branches 1.3.4.1; next 1.2; 1.2 date 2001.11.26.16.23.37; author rse; state Exp; branches; next 1.1; 1.1 date 2001.09.18.09.48.29; author rse; state Exp; branches 1.1.1.1; next ; 1.16.10.1 date 2006.10.16.14.57.37; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; 1.13.2.1 date 2004.05.01.18.15.11; author rse; state Exp; branches; next ; 1.3.4.1 date 2003.07.24.20.45.34; author rse; state Exp; branches; next 1.3.4.2; 1.3.4.2 date 2003.07.26.13.36.23; author rse; state Exp; branches; next ; 1.1.1.1 date 2001.09.18.09.48.29; author rse; state Exp; branches; next ; desc @@ 1.17 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.uucp -- Run-Commands ## %config uucp_enable="$openpkg_rc_def" uucp_flags="-l" uucp_bind="127.0.0.1" uucp_port="540" uucp_log_prolog="true" uucp_log_epilog="true" uucp_log_numfiles="10" uucp_log_minsize="1M" uucp_log_complevel="9" %common uucp_pidfile="@@l_prefix@@/var/uucp/run/uucpd.pid" uucp_signal () { [ -f $uucp_pidfile ] && kill -$1 `cat $uucp_pidfile` } uucp_start () { ( @@l_prefix@@/sbin/uucpd ${uucp_bind}${uucp_bind:+:}${uucp_port:-uucp} \ @@l_prefix@@/sbin/uucico ${uucp_flags} \ /dev/null 2>&1 & echo $! >$uucp_pidfile ) /dev/null 2>&1 } %status -u @@l_susr@@ -o uucp_usable="unknown" uucp_active="no" rcService uucp enable yes && \ uucp_signal 0 && uucp_active="yes" echo "uucp_enable=\"$uucp_enable\"" echo "uucp_usable=\"$uucp_usable\"" echo "uucp_active=\"$uucp_active\"" %start -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active yes && exit 0 uucp_start %stop -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active no && exit 0 uucp_signal TERM sleep 2 rm -f $uucp_pidfile 2>/dev/null || true %restart -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active no && exit 0 rc uucp stop start %daily -u @@l_susr@@ rcService uucp enable yes || exit 0 shtool rotate -f \ -n ${uucp_log_numfiles} -s ${uucp_log_minsize} -d \ -z ${uucp_log_complevel} -m 644 -o @@l_musr@@ -g @@l_mgrp@@ \ -P "${uucp_log_prolog}" \ -E "${uucp_log_epilog}; rc uucp restart" \ @@l_prefix@@/var/uucp/log/uucp.debug \ @@l_prefix@@/var/uucp/log/uucp.log \ @@l_prefix@@/var/uucp/log/uucp.stat @ 1.16 log @remove lonely logfile rotation comment in rc files @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.16.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.15 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @a57 2 # rotate logfile @ 1.14 log @$! cannot be expanded within quotes under Bash @ text @d64 1 a64 1 -E "${uucp_log_epilog} && rc uucp restart" \ @ 1.13 log @PR#202 run-time check and related issues; for port fallback, use name "uucp" not number 540; @ text @d26 1 a26 1 echo "$!" >$uucp_pidfile @ 1.13.2.1 log @MFC: fix pidfile writing @ text @d26 1 a26 1 echo $! >$uucp_pidfile @ 1.12 log @correct and obey tcp wrapper usage help; address is optional, port is mandatory; fix superflous "program" arg bug in rc file; fix PR#176 set default daemon bind/listen address to 127.0.0.1 @ text @d23 1 a23 1 ( @@l_prefix@@/sbin/uucpd ${uucp_bind}${uucp_bind:+:}${uucp_port:-540} \ d62 1 a62 1 -z ${uucp_log_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ d65 3 a67 1 @@l_prefix@@/var/uucp/uucp.log @ 1.11 log @prepare related issues for PR#202 but no run-time check done @ text @d8 3 d23 2 a24 1 ( @@l_prefix@@/sbin/uucpd uucp @@l_prefix@@/sbin/uucico -l \ @ 1.10 log @cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies @ text @d8 5 d37 1 d42 1 d44 1 d49 13 a61 3 uucp_signal TERM sleep 2 uucp_start @ 1.9 log @%status and pidfile handling @ text @d21 1 a21 1 %status -p 200 -u @@l_susr@@ -o d30 1 a30 1 %start -p 200 -u @@l_susr@@ d34 1 a34 1 %stop -p 200 -u @@l_susr@@ @ 1.8 log @replace opXXXX with rcXXXX (PR#207) @ text @d11 3 d20 9 a28 6 uucp_stop () { if [ -f $uucp_pidfile ]; then kill -TERM `cat $uucp_pidfile` sleep 1 fi } d36 2 a37 1 uucp_stop d41 2 a42 1 uucp_stop @ 1.7 log @migrate opServiceEnabled to opService ... enable yes; use new bootstrap feature and apply opService short circuit to %env @ text @d25 1 a25 1 opService uucp enable yes || exit 0 d29 1 a29 1 opService uucp enable yes || exit 0 d33 1 a33 1 opService uucp enable yes || exit 0 @ 1.6 log @use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable @ text @d25 1 a25 1 opServiceEnabled uucp || exit 0 d29 1 a29 1 opServiceEnabled uucp || exit 0 d33 1 a33 1 opServiceEnabled uucp || exit 0 @ 1.5 log @cosmetics: align/fix/unify rc header comment @ text @d7 1 a7 1 uucp_enable="yes" @ 1.4 log @rc script clean up @ text @d3 1 a3 1 ## rc.uucp -- Run-Commands for UUCP Daemon @ 1.3 log @Introduced enable variable. @ text @d24 1 a24 1 %start -p 200 -u root d28 1 a28 1 %stop -p 200 -u root d32 1 a32 1 %restart -u root @ 1.3.4.1 log @mass Merge-From-CURRENT (MFC) in preparation for OpenPKG 1.3 [class BASE only] @ text @d3 1 a3 1 ## rc.uucp -- Run-Commands d7 1 a7 6 uucp_enable="$openpkg_rc_def" uucp_log_prolog="true" uucp_log_epilog="true" uucp_log_numfiles="10" uucp_log_minsize="1M" uucp_log_complevel="9" a10 3 uucp_signal () { [ -f $uucp_pidfile ] && kill -$1 `cat $uucp_pidfile` } d17 6 d24 3 a26 8 %status -u @@l_susr@@ -o uucp_usable="unknown" uucp_active="no" rcService uucp enable yes && \ uucp_signal 0 && uucp_active="yes" echo "uucp_enable=\"$uucp_enable\"" echo "uucp_usable=\"$uucp_usable\"" echo "uucp_active=\"$uucp_active\"" d28 7 a34 3 %start -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active yes && exit 0 a35 23 %stop -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active no && exit 0 uucp_signal TERM sleep 2 rm -f $uucp_pidfile 2>/dev/null || true %restart -u @@l_susr@@ rcService uucp enable yes || exit 0 rcService uucp active no && exit 0 rc uucp stop start %daily -u @@l_susr@@ rcService uucp enable yes || exit 0 # rotate logfile shtool rotate -f \ -n ${uucp_log_numfiles} -s ${uucp_log_minsize} -d \ -z ${uucp_log_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${uucp_log_prolog}" \ -E "${uucp_log_epilog} && rc uucp restart" \ @@l_prefix@@/var/uucp/uucp.log @ 1.3.4.2 log @MFC: all changes since last merge @ text @a7 3 uucp_flags="-l" uucp_bind="127.0.0.1" uucp_port="540" d20 1 a20 2 ( @@l_prefix@@/sbin/uucpd ${uucp_bind}${uucp_bind:+:}${uucp_port:-uucp} \ @@l_prefix@@/sbin/uucico ${uucp_flags} \ d58 1 a58 1 -z ${uucp_log_complevel} -m 644 -o @@l_musr@@ -g @@l_mgrp@@ \ d61 1 a61 3 @@l_prefix@@/var/uucp/log/uucp.debug \ @@l_prefix@@/var/uucp/log/uucp.log \ @@l_prefix@@/var/uucp/log/uucp.stat @ 1.2 log @Mega-change: - prefix/etc/rpm -> prefix/etc/openpkg - prefix/lib/rpm -> prefix/lib/openpkg @ text @d6 3 d25 1 d29 1 d33 1 @ 1.1 log @Initial revision @ text @d1 1 a1 1 #!@@l_prefix@@/lib/rpm/bash @@l_prefix@@/etc/rc @ 1.1.1.1 log @Import OpenPKG sources into CVS repository @ text @@