head 1.19; access; symbols OPENPKG_E1_MP_HEAD:1.19 OPENPKG_E1_MP:1.19 OPENPKG_E1_MP_2_STABLE:1.17.6.1 OPENPKG_E1_FP:1.17.6.1 OPENPKG_2_STABLE_MP:1.19 OPENPKG_2_STABLE_20061018:1.17.6.1 OPENPKG_2_STABLE_20060622:1.17 OPENPKG_2_STABLE:1.17.0.6 OPENPKG_2_STABLE_BP:1.17 OPENPKG_2_5_RELEASE:1.17 OPENPKG_2_5_SOLID:1.17.0.4 OPENPKG_2_5_SOLID_BP:1.17 OPENPKG_2_4_RELEASE:1.17 OPENPKG_2_4_SOLID:1.17.0.2 OPENPKG_2_4_SOLID_BP:1.17 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.15 OPENPKG_2_1_SOLID:1.15.0.4 OPENPKG_2_1_SOLID_BP:1.15 OPENPKG_2_0_RELEASE:1.15 OPENPKG_2_0_SOLID:1.15.0.2 OPENPKG_2_0_SOLID_BP:1.15 OPENPKG_1_3_RELEASE:1.3.4.1 OPENPKG_1_3_SOLID:1.3.4.1.0.2 OPENPKG_1_3_SOLID_BP:1.3.4.1 OPENPKG_1_STABLE_MP:1.14 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.19 date 2006.09.04.06.10.59; author rse; state Exp; branches; next 1.18; commitid r9ZnzU1nJe6nutLr; 1.18 date 2006.08.25.19.18.41; author rse; state Exp; branches; next 1.17; commitid Tvsj1UyQ8rQ89gKr; 1.17 date 2005.04.11.08.50.44; author rse; state Exp; branches 1.17.6.1; next 1.16; 1.16 date 2004.07.30.14.03.04; author ms; state Exp; branches; next 1.15; 1.15 date 2003.08.06.14.57.09; author mlelstv; state Exp; branches; next 1.14; 1.14 date 2003.07.22.14.22.25; author thl; state Exp; branches; next 1.13; 1.13 date 2003.07.22.08.11.05; author rse; state Exp; branches; next 1.12; 1.12 date 2003.07.21.08.40.45; author thl; state Exp; branches; next 1.11; 1.11 date 2003.07.19.17.06.21; author rse; state Exp; branches; next 1.10; 1.10 date 2003.07.18.11.57.04; author mlelstv; state Exp; branches; next 1.9; 1.9 date 2003.07.17.21.35.03; author thl; state Exp; branches; next 1.8; 1.8 date 2003.07.10.07.50.58; author rse; state Exp; branches; next 1.7; 1.7 date 2003.07.09.14.06.24; author thl; state Exp; branches; next 1.6; 1.6 date 2003.06.24.12.08.03; author thl; state Exp; branches; next 1.5; 1.5 date 2003.05.27.17.18.03; author rse; state Exp; branches; next 1.4; 1.4 date 2003.03.28.14.03.17; author cs; state Exp; branches; next 1.3; 1.3 date 2002.03.01.13.35.04; author cs; state Exp; branches 1.3.4.1; next 1.2; 1.2 date 2001.11.26.16.23.33; 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.17.6.1 date 2006.10.16.14.55.12; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; 1.3.4.1 date 2003.07.24.20.45.09; 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.19 log @allow ProFTPD to be niced on startup in order to better control its CPU resources @ text @#!@@l_prefix@@/bin/openpkg rc ## ## rc.proftpd -- Run-Commands ## %config proftpd_enable="$openpkg_rc_def" proftpd_nice="0" proftpd_acc_file="@@l_prefix@@/var/proftpd/proftpd.access.log" proftpd_acc_prolog="true" proftpd_acc_epilog="true" proftpd_acc_numfiles="10" proftpd_acc_minsize="1M" proftpd_acc_complevel="9" proftpd_auth_file="@@l_prefix@@/var/proftpd/proftpd.auth.log" proftpd_auth_prolog="true" proftpd_auth_epilog="true" proftpd_auth_numfiles="10" proftpd_auth_minsize="1M" proftpd_auth_complevel="9" proftpd_sys_file="@@l_prefix@@/var/proftpd/proftpd.system.log" proftpd_sys_prolog="true" proftpd_sys_epilog="true" proftpd_sys_numfiles="10" proftpd_sys_minsize="1M" proftpd_sys_complevel="9" proftpd_xfer_file="@@l_prefix@@/var/proftpd/proftpd.xfer.log" proftpd_xfer_prolog="true" proftpd_xfer_epilog="true" proftpd_xfer_numfiles="10" proftpd_xfer_minsize="1M" proftpd_xfer_complevel="9" %common proftpd_pidfile="@@l_prefix@@/var/proftpd/proftpd.pid" proftpd_signal () { [ -f $proftpd_pidfile ] && kill -$1 `cat $proftpd_pidfile` } %status -u @@l_susr@@ -o proftpd_usable="unknown" proftpd_active="no" rcService proftpd enable yes && \ proftpd_signal 0 && proftpd_active="yes" echo "proftpd_enable=\"$proftpd_enable\"" echo "proftpd_usable=\"$proftpd_usable\"" echo "proftpd_active=\"$proftpd_active\"" %start -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active yes && exit 0 nice -n $proftpd_nice @@l_prefix@@/sbin/proftpd %stop -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active no && exit 0 proftpd_signal TERM sleep 2 %restart -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active no && exit 0 rc proftpd stop start %reload -u @@l_susr@@ rcService proftpd enable yes || exit 0 proftpd_signal HUP %daily -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcTmp -i hintfile=`rcTmp -f -n hint` shtool rotate -f \ -n ${proftpd_acc_numfiles} -s ${proftpd_acc_minsize} -d \ -z ${proftpd_acc_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_acc_prolog}" \ -E "${proftpd_acc_epilog}; echo 1 >$hintfile" \ ${proftpd_acc_file} shtool rotate -f \ -n ${proftpd_auth_numfiles} -s ${proftpd_auth_minsize} -d \ -z ${proftpd_auth_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_auth_prolog}" \ -E "${proftpd_auth_epilog}; echo 1 >$hintfile" \ ${proftpd_auth_file} shtool rotate -f \ -n ${proftpd_sys_numfiles} -s ${proftpd_sys_minsize} -d \ -z ${proftpd_sys_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_sys_prolog}" \ -E "${proftpd_sys_epilog}; echo 1 >$hintfile" \ ${proftpd_sys_file} shtool rotate -f \ -n ${proftpd_xfer_numfiles} -s ${proftpd_xfer_minsize} -d \ -z ${proftpd_xfer_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_xfer_prolog}" \ -E "${proftpd_xfer_epilog}; echo 1 >$hintfile" \ ${proftpd_xfer_file} if [ -s $hintfile ]; then rc proftpd restart fi rcTmp -k @ 1.18 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 @d8 1 d52 1 a52 1 @@l_prefix@@/sbin/proftpd @ 1.17 log @upgrade to 1.3.0rc1; flag more files as %config; fix substitutions; remove obsolete patch @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.17.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 a7 1 proftpd_nice="0" d51 1 a51 1 nice -n $proftpd_nice @@l_prefix@@/sbin/proftpd @ 1.16 log @apply fixsimilar to http://cvs.openpkg.org/chngview?cn=17929, restarting daemons unconditionally when any logfile rotation happens @ text @a69 2 # rotate logfile @ 1.15 log @avoid multiple restarts on logfile rotation @ text @d78 1 a78 1 -E "${proftpd_acc_epilog} && echo 1 >$hintfile" \ d84 1 a84 1 -E "${proftpd_auth_epilog} && echo 1 >$hintfile" \ d90 1 a90 1 -E "${proftpd_sys_epilog} && echo 1 >$hintfile" \ d96 1 a96 1 -E "${proftpd_xfer_epilog} && echo 1 >$hintfile" \ @ 1.14 log @PR#202 run-time check and related issues @ text @d72 2 d78 1 a78 1 -E "${proftpd_acc_epilog} && rc proftpd restart" \ d84 1 a84 1 -E "${proftpd_auth_epilog} && rc proftpd restart" \ d90 1 a90 1 -E "${proftpd_sys_epilog} && rc proftpd restart" \ d96 1 a96 1 -E "${proftpd_xfer_epilog} && rc proftpd restart" \ d98 4 @ 1.13 log @cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies @ text @d50 1 d55 1 d57 1 d61 2 a62 3 proftpd_signal TERM sleep 2 @@l_prefix@@/sbin/proftpd d70 2 d74 1 a74 1 -z ${proftpd_acc_complevel} -o @@l_susr@@ -g @@l_sgrp@@ -m 600 \ d76 1 a76 1 -E "@@l_prefix@@/etc/rc.d/rc.proftpd restart; ${proftpd_acc_epilog}" \ d80 1 a80 1 -z ${proftpd_auth_complevel} -o @@l_susr@@ -g @@l_sgrp@@ -m 600 \ d82 1 a82 1 -E "@@l_prefix@@/etc/rc.d/rc.proftpd restart; ${proftpd_auth_epilog}" \ d86 1 a86 1 -z ${proftpd_sys_complevel} -o @@l_susr@@ -g @@l_sgrp@@ -m 600 \ d88 1 a88 1 -E "@@l_prefix@@/etc/rc.d/rc.proftpd restart; ${proftpd_sys_epilog}" \ d92 1 a92 1 -z ${proftpd_xfer_complevel} -o @@l_susr@@ -g @@l_sgrp@@ -m 600 \ d94 1 a94 1 -E "@@l_prefix@@/etc/rc.d/rc.proftpd restart; ${proftpd_xfer_epilog}" \ @ 1.12 log @PR#210: shtool options space before argument @ text @d39 1 a39 1 %status -p 200 -u @@l_susr@@ -o d48 1 a48 1 %start -p 200 -u @@l_susr@@ d52 1 a52 1 %stop -p 200 -u @@l_susr@@ @ 1.11 log @replace opXXXX with rcXXXX (PR#207) @ text @d69 2 a70 2 -n${proftpd_acc_numfiles} -s${proftpd_acc_minsize} -d \ -z${proftpd_acc_complevel} -o@@l_susr@@ -g@@l_sgrp@@ -m600 \ d75 2 a76 2 -n${proftpd_auth_numfiles} -s${proftpd_auth_minsize} -d \ -z${proftpd_auth_complevel} -o@@l_susr@@ -g@@l_sgrp@@ -m600 \ d81 2 a82 2 -n${proftpd_sys_numfiles} -s${proftpd_sys_minsize} -d \ -z${proftpd_sys_complevel} -o@@l_susr@@ -g@@l_sgrp@@ -m600 \ d87 2 a88 2 -n${proftpd_xfer_numfiles} -s${proftpd_xfer_minsize} -d \ -z${proftpd_xfer_complevel} -o@@l_susr@@ -g@@l_sgrp@@ -m600 \ @ 1.10 log @%status @ text @d42 1 a42 1 opService proftpd enable yes && \ d49 1 a49 1 opService proftpd enable yes || exit 0 d53 1 a53 1 opService proftpd enable yes || exit 0 d57 1 a57 1 opService proftpd enable yes || exit 0 d63 1 a63 1 opService proftpd enable yes || exit 0 d67 1 a67 1 opService proftpd enable yes || exit 0 @ 1.9 log @migrate opServiceEnabled to opService ... enable yes; use new bootstrap feature and apply opService short circuit to %env @ text @d33 15 d54 1 a54 3 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` fi d58 2 a59 4 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` sleep 2 fi d64 1 a64 3 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -HUP `cat @@l_prefix@@/var/proftpd/proftpd.pid` fi @ 1.8 log @use new openpkg_rc_def variable in run-command scripts for allowing the admin to change the global default for xxx_enable @ text @d34 1 a34 1 opServiceEnabled proftpd || exit 0 d38 1 a38 1 opServiceEnabled proftpd || exit 0 d44 1 a44 1 opServiceEnabled proftpd || exit 0 d52 1 a52 1 opServiceEnabled proftpd || exit 0 d58 1 a58 1 opServiceEnabled proftpd || exit 0 @ 1.7 log @rclint police: fix badly prefixed variable, opServiceEnabled, exit not allowed here @ text @d7 1 a7 1 proftpd_enable="yes" @ 1.6 log @cosmetics: align/fix/unify rc header comment @ text @d34 2 a35 3 if opServiceEnabled proftpd; then @@l_prefix@@/sbin/proftpd fi d38 3 a40 4 if opServiceEnabled proftpd; then if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` fi d44 4 a47 6 if opServiceEnabled proftpd; then if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` sleep 2 fi @@l_prefix@@/sbin/proftpd d49 1 d52 3 a54 4 if opServiceEnabled proftpd; then if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -HUP `cat @@l_prefix@@/var/proftpd/proftpd.pid` fi @ 1.5 log @ops, replace the hard-coded developer paths with dynamically substituted path @ text @d3 1 a3 1 ## rc.proftpd -- Run-Commands for ProFTPD @ 1.4 log @rc script clean up and log file rotation @ text @d67 1 a67 1 -E "/cw/etc/rc.d/rc.proftpd restart; ${proftpd_acc_epilog}" \ d73 1 a73 1 -E "/cw/etc/rc.d/rc.proftpd restart; ${proftpd_auth_epilog}" \ d79 1 a79 1 -E "/cw/etc/rc.d/rc.proftpd restart; ${proftpd_sys_epilog}" \ d85 1 a85 1 -E "/cw/etc/rc.d/rc.proftpd restart; ${proftpd_xfer_epilog}" \ @ 1.3 log @introduced proftpd_enable in rc script @ text @d8 24 d33 1 a33 1 %start -p 200 -u root d38 1 a38 1 %stop -p 200 -u root d45 1 a45 1 %restart -u root d54 1 a54 1 %reload -u root d60 27 @ 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.proftpd -- Run-Commands d7 1 a7 25 proftpd_enable="$openpkg_rc_def" proftpd_acc_file="@@l_prefix@@/var/proftpd/proftpd.access.log" proftpd_acc_prolog="true" proftpd_acc_epilog="true" proftpd_acc_numfiles="10" proftpd_acc_minsize="1M" proftpd_acc_complevel="9" proftpd_auth_file="@@l_prefix@@/var/proftpd/proftpd.auth.log" proftpd_auth_prolog="true" proftpd_auth_epilog="true" proftpd_auth_numfiles="10" proftpd_auth_minsize="1M" proftpd_auth_complevel="9" proftpd_sys_file="@@l_prefix@@/var/proftpd/proftpd.system.log" proftpd_sys_prolog="true" proftpd_sys_epilog="true" proftpd_sys_numfiles="10" proftpd_sys_minsize="1M" proftpd_sys_complevel="9" proftpd_xfer_file="@@l_prefix@@/var/proftpd/proftpd.xfer.log" proftpd_xfer_prolog="true" proftpd_xfer_epilog="true" proftpd_xfer_numfiles="10" proftpd_xfer_minsize="1M" proftpd_xfer_complevel="9" d9 27 a35 63 %common proftpd_pidfile="@@l_prefix@@/var/proftpd/proftpd.pid" proftpd_signal () { [ -f $proftpd_pidfile ] && kill -$1 `cat $proftpd_pidfile` } %status -u @@l_susr@@ -o proftpd_usable="unknown" proftpd_active="no" rcService proftpd enable yes && \ proftpd_signal 0 && proftpd_active="yes" echo "proftpd_enable=\"$proftpd_enable\"" echo "proftpd_usable=\"$proftpd_usable\"" echo "proftpd_active=\"$proftpd_active\"" %start -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active yes && exit 0 @@l_prefix@@/sbin/proftpd %stop -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active no && exit 0 proftpd_signal TERM sleep 2 %restart -u @@l_susr@@ rcService proftpd enable yes || exit 0 rcService proftpd active no && exit 0 rc proftpd stop start %reload -u @@l_susr@@ rcService proftpd enable yes || exit 0 proftpd_signal HUP %daily -u @@l_susr@@ rcService proftpd enable yes || exit 0 # rotate logfile shtool rotate -f \ -n ${proftpd_acc_numfiles} -s ${proftpd_acc_minsize} -d \ -z ${proftpd_acc_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_acc_prolog}" \ -E "${proftpd_acc_epilog} && rc proftpd restart" \ ${proftpd_acc_file} shtool rotate -f \ -n ${proftpd_auth_numfiles} -s ${proftpd_auth_minsize} -d \ -z ${proftpd_auth_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_auth_prolog}" \ -E "${proftpd_auth_epilog} && rc proftpd restart" \ ${proftpd_auth_file} shtool rotate -f \ -n ${proftpd_sys_numfiles} -s ${proftpd_sys_minsize} -d \ -z ${proftpd_sys_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_sys_prolog}" \ -E "${proftpd_sys_epilog} && rc proftpd restart" \ ${proftpd_sys_file} shtool rotate -f \ -n ${proftpd_xfer_numfiles} -s ${proftpd_xfer_minsize} -d \ -z ${proftpd_xfer_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${proftpd_xfer_prolog}" \ -E "${proftpd_xfer_epilog} && rc proftpd restart" \ ${proftpd_xfer_file} @ 1.2 log @Mega-change: - prefix/etc/rpm -> prefix/etc/openpkg - prefix/lib/rpm -> prefix/lib/openpkg @ text @d6 3 d10 3 a12 1 @@l_prefix@@/sbin/proftpd d15 4 a18 2 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` d22 6 a27 3 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -TERM `cat @@l_prefix@@/var/proftpd/proftpd.pid` sleep 2 a28 1 @@l_prefix@@/sbin/proftpd d31 4 a34 2 if [ -f @@l_prefix@@/var/proftpd/proftpd.pid ]; then kill -HUP `cat @@l_prefix@@/var/proftpd/proftpd.pid` @ 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 @@