head 1.19; access; symbols OPENPKG_E1_MP_HEAD:1.19 OPENPKG_E1_MP:1.19 OPENPKG_E1_MP_2_STABLE:1.18.10.1 OPENPKG_E1_FP:1.18.10.1 OPENPKG_2_STABLE_MP:1.19 OPENPKG_2_STABLE_20061018:1.18.10.1 OPENPKG_2_STABLE_20060622:1.18 OPENPKG_2_STABLE:1.18.0.10 OPENPKG_2_STABLE_BP:1.18 OPENPKG_2_5_RELEASE:1.18 OPENPKG_2_5_SOLID:1.18.0.8 OPENPKG_2_5_SOLID_BP:1.18 OPENPKG_2_4_RELEASE:1.18 OPENPKG_2_4_SOLID:1.18.0.6 OPENPKG_2_4_SOLID_BP:1.18 OPENPKG_CW_FP:1.18 OPENPKG_2_3_RELEASE:1.18 OPENPKG_2_3_SOLID:1.18.0.4 OPENPKG_2_3_SOLID_BP:1.18 OPENPKG_2_2_RELEASE:1.18 OPENPKG_2_2_SOLID:1.18.0.2 OPENPKG_2_2_SOLID_BP:1.18 OPENPKG_2_1_RELEASE:1.16 OPENPKG_2_1_SOLID:1.16.0.4 OPENPKG_2_1_SOLID_BP:1.16 OPENPKG_2_0_RELEASE:1.16 OPENPKG_2_0_SOLID:1.16.0.2 OPENPKG_2_0_SOLID_BP:1.16 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.16 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.08.25.19.18.43; author rse; state Exp; branches; next 1.18; commitid Tvsj1UyQ8rQ89gKr; 1.18 date 2004.09.20.14.33.32; author rse; state Exp; branches 1.18.10.1; next 1.17; 1.17 date 2004.07.06.11.18.24; author ms; state Exp; branches; next 1.16; 1.16 date 2003.07.24.13.55.32; author thl; state Exp; branches; next 1.15; 1.15 date 2003.07.24.07.03.17; author thl; state Exp; branches; next 1.14; 1.14 date 2003.07.22.08.11.05; author rse; state Exp; branches; next 1.13; 1.13 date 2003.07.21.08.40.46; author thl; state Exp; branches; next 1.12; 1.12 date 2003.07.19.17.06.22; author rse; state Exp; branches; next 1.11; 1.11 date 2003.07.18.13.48.24; author mlelstv; state Exp; branches; next 1.10; 1.10 date 2003.07.17.21.35.03; author thl; state Exp; branches; next 1.9; 1.9 date 2003.07.10.07.50.59; author rse; state Exp; branches; next 1.8; 1.8 date 2003.07.09.14.06.24; author thl; state Exp; branches; next 1.7; 1.7 date 2003.07.07.21.54.30; author thl; state Exp; branches; next 1.6; 1.6 date 2003.07.03.08.59.48; author thl; state Exp; branches; next 1.5; 1.5 date 2003.06.24.12.17.38; author thl; state Exp; branches; next 1.4; 1.4 date 2003.06.24.12.08.04; author thl; state Exp; branches; next 1.3; 1.3 date 2002.03.01.13.32.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.32; author rse; state Exp; branches 1.1.1.1; next ; 1.18.10.1 date 2006.10.16.14.55.19; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; 1.3.4.1 date 2003.07.24.20.45.12; author rse; state Exp; branches; next ; 1.1.1.1 date 2001.09.18.09.48.32; author rse; state Exp; branches; next ; desc @@ 1.19 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.pureftpd -- Run-Commands ## %config pureftpd_enable="$openpkg_rc_def" pureftpd_flags="" pureftpd_bind="127.0.0.1" pureftpd_port="21" pureftpd_log_prolog="true" pureftpd_log_epilog="true" pureftpd_log_numfiles="10" pureftpd_log_minsize="1M" pureftpd_log_complevel="9" %common pureftpd_pidfile="@@l_prefix@@/var/pureftpd/pureftpd.pid" pureftpd_signal () { [ -f $pureftpd_pidfile ] && kill -$1 `cat $pureftpd_pidfile` } %status -u @@l_susr@@ -o pureftpd_usable="unknown" pureftpd_active="no" rcService pureftpd enable yes && \ pureftpd_signal 0 && pureftpd_active="yes" echo "pureftpd_enable=\"$pureftpd_enable\"" echo "pureftpd_usable=\"$pureftpd_usable\"" echo "pureftpd_active=\"$pureftpd_active\"" %start -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active yes && exit 0 flags="$pureftpd_flags" echo $flags | grep -- -S >/dev/null; rc1=$? echo $flags | grep -- --bind >/dev/null; rc2=$? if [ $rc1 -ne 0 -a $rc2 -ne 0 ]; then if [ ".$pureftpd_bind" != . ]; then flags="$flags --bind $pureftpd_bind" else flags="$flags --bind 0.0.0.0" fi if [ ".$pureftpd_port" != . ]; then flags="$flags,$pureftpd_port" fi fi @@l_prefix@@/sbin/pure-ftpd --daemonize --pidfile $pureftpd_pidfile $flags %stop -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active no && exit 0 pureftpd_signal TERM sleep 2 %restart -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active no && exit 0 rc pureftpd stop start %daily -u @@l_susr@@ rcService pureftpd enable yes || exit 0 shtool rotate -f \ -n ${pureftpd_log_numfiles} -s ${pureftpd_log_minsize} -d \ -z ${pureftpd_log_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${pureftpd_log_prolog}" \ -E "${pureftpd_log_epilog}; rc pureftpd restart" \ @@l_prefix@@/var/pureftpd/pureftpd.log @ 1.18 log @remove lonely logfile rotation comment in rc files @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.18.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.17 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @a62 2 # rotate logfile @ 1.16 log @PR#202 run-time check and related issues @ text @d69 1 a69 1 -E "${pureftpd_log_epilog} && rc pureftpd restart" \ @ 1.15 log @prepare related issues for PR#202 but no run-time check done @ text @d8 3 d35 14 a48 2 @@l_prefix@@/sbin/pure-ftpd @@l_prefix@@/var/pureftpd/pureftpd.pid a54 1 rm -f $pureftpd_pidfile @ 1.14 log @cleanup the priority: move 200 to 500 and because 500 is default just ommit it; fix DNS/NTP/etc. dependencies @ text @d31 1 d37 1 d39 1 d44 2 a45 4 pureftpd_signal TERM sleep 2 @@l_prefix@@/sbin/pure-ftpd $pureftpd_pidfile d53 1 a53 1 -z ${pureftpd_log_complevel} -o @@l_rusr@@ -g @@l_rgrp@@ -m 644 \ d55 1 a55 1 -E "${pureftpd_log_epilog}" \ @ 1.13 log @PR#210: shtool options space before argument @ text @d20 1 a20 1 %status -p 200 -u @@l_susr@@ -o d29 1 a29 1 %start -p 200 -u @@l_susr@@ d34 1 a34 1 %stop -p 200 -u @@l_susr@@ @ 1.12 log @replace opXXXX with rcXXXX (PR#207) @ text @d51 2 a52 2 -n${pureftpd_log_numfiles} -s${pureftpd_log_minsize} -d \ -z${pureftpd_log_complevel} -o@@l_rusr@@ -g@@l_rgrp@@ -m644 \ @ 1.11 log @%status and pidfile handling @ text @d23 1 a23 1 opService pureftpd enable yes && \ d30 1 a30 1 opService pureftpd enable yes || exit 0 d35 1 a35 1 opService pureftpd enable yes || exit 0 d40 1 a40 1 opService pureftpd enable yes || exit 0 d47 1 a47 1 opService pureftpd enable yes || exit 0 @ 1.10 log @migrate opServiceEnabled to opService ... enable yes; use new bootstrap feature and apply opService short circuit to %env @ text @d14 15 d36 2 a37 1 kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` d41 1 a41 1 kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` d44 1 a44 1 echo "$!" >@@l_prefix@@/var/pureftpd/pureftpd.pid @ 1.9 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 pureftpd || exit 0 d20 1 a20 1 opServiceEnabled pureftpd || exit 0 d24 1 a24 1 opServiceEnabled pureftpd || exit 0 d31 1 a31 1 opServiceEnabled pureftpd || exit 0 @ 1.8 log @rclint police: fix badly prefixed variable, opServiceEnabled, exit not allowed here @ text @d7 1 a7 1 pureftpd_enable="yes" @ 1.7 log @rclint police: fix mandatory/wished trailing blank line missing @ text @d15 3 a17 4 if opServiceEnabled pureftpd; then @@l_prefix@@/sbin/pure-ftpd @@l_prefix@@/var/pureftpd/pureftpd.pid fi d20 2 a21 3 if opServiceEnabled pureftpd; then kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` fi d24 5 a28 6 if opServiceEnabled pureftpd; then kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` sleep 2 @@l_prefix@@/sbin/pure-ftpd @@l_prefix@@/var/pureftpd/pureftpd.pid fi @ 1.6 log @add fsl support @ text @d43 1 @ 1.5 log @replace root constant with l_susr variable in rc files @ text @d8 5 d33 10 @ 1.4 log @cosmetics: align/fix/unify rc header comment @ text @d9 1 a9 1 %start -p 200 -u root d15 1 a15 1 %stop -p 200 -u root d20 1 a20 1 %restart -u root @ 1.3 log @introduced pureftpd_enable in rc script @ text @d3 1 a3 1 ## rc.pureftpd -- Run-Commands for PureFTPD @ 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.pureftpd -- Run-Commands d7 1 a7 9 pureftpd_enable="$openpkg_rc_def" pureftpd_flags="" pureftpd_bind="127.0.0.1" pureftpd_port="21" pureftpd_log_prolog="true" pureftpd_log_epilog="true" pureftpd_log_numfiles="10" pureftpd_log_minsize="1M" pureftpd_log_complevel="9" d9 5 a13 5 %common pureftpd_pidfile="@@l_prefix@@/var/pureftpd/pureftpd.pid" pureftpd_signal () { [ -f $pureftpd_pidfile ] && kill -$1 `cat $pureftpd_pidfile` } d15 4 a18 8 %status -u @@l_susr@@ -o pureftpd_usable="unknown" pureftpd_active="no" rcService pureftpd enable yes && \ pureftpd_signal 0 && pureftpd_active="yes" echo "pureftpd_enable=\"$pureftpd_enable\"" echo "pureftpd_usable=\"$pureftpd_usable\"" echo "pureftpd_active=\"$pureftpd_active\"" d20 6 a25 15 %start -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active yes && exit 0 flags="$pureftpd_flags" echo $flags | grep -- -S >/dev/null; rc1=$? echo $flags | grep -- --bind >/dev/null; rc2=$? if [ $rc1 -ne 0 -a $rc2 -ne 0 ]; then if [ ".$pureftpd_bind" != . ]; then flags="$flags --bind $pureftpd_bind" else flags="$flags --bind 0.0.0.0" fi if [ ".$pureftpd_port" != . ]; then flags="$flags,$pureftpd_port" fi a26 23 @@l_prefix@@/sbin/pure-ftpd --daemonize --pidfile $pureftpd_pidfile $flags %stop -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active no && exit 0 pureftpd_signal TERM sleep 2 %restart -u @@l_susr@@ rcService pureftpd enable yes || exit 0 rcService pureftpd active no && exit 0 rc pureftpd stop start %daily -u @@l_susr@@ rcService pureftpd enable yes || exit 0 # rotate logfile shtool rotate -f \ -n ${pureftpd_log_numfiles} -s ${pureftpd_log_minsize} -d \ -z ${pureftpd_log_complevel} -m 644 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${pureftpd_log_prolog}" \ -E "${pureftpd_log_epilog} && rc pureftpd restart" \ @@l_prefix@@/var/pureftpd/pureftpd.log @ 1.2 log @Mega-change: - prefix/etc/rpm -> prefix/etc/openpkg - prefix/lib/rpm -> prefix/lib/openpkg @ text @d6 3 d10 4 a13 2 @@l_prefix@@/sbin/pure-ftpd @@l_prefix@@/var/pureftpd/pureftpd.pid d16 3 a18 1 kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` d21 6 a26 4 kill -TERM `cat @@l_prefix@@/var/pureftpd/pureftpd.pid` sleep 2 @@l_prefix@@/sbin/pure-ftpd @@l_prefix@@/var/pureftpd/pureftpd.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 @@