head 1.4; access; symbols OPENPKG_E1_MP_HEAD:1.4 OPENPKG_E1_MP:1.4 OPENPKG_E1_MP_2_STABLE:1.4.2.2 OPENPKG_E1_FP:1.4.2.2 OPENPKG_2_STABLE_MP:1.4 OPENPKG_2_STABLE_20061018:1.4.2.2 OPENPKG_2_STABLE:1.4.0.2 OPENPKG_CW_FP:1.2; locks; strict; comment @# @; 1.4 date 2006.08.25.19.18.12; author rse; state Exp; branches 1.4.2.1; next 1.3; commitid Tvsj1UyQ8rQ89gKr; 1.3 date 2006.06.07.10.51.57; author cs; state Exp; branches; next 1.2; commitid UiTAw7cXYjZ7U3Ar; 1.2 date 2004.07.06.11.18.19; author ms; state Exp; branches; next 1.1; 1.1 date 2004.01.08.13.13.51; author rse; state Exp; branches; next ; 1.4.2.1 date 2006.08.25.19.18.12; author rse; state dead; branches; next 1.4.2.2; commitid iZxwRSmmWscPXUQr; 1.4.2.2 date 2006.10.16.14.54.03; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.4 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.pdnsd -- Run-Commands ## %config pdnsd_enable="$openpkg_rc_def" pdnsd_flags="-s" pdnsd_log_prolog="true" pdnsd_log_epilog="true" pdnsd_log_numfiles="10" pdnsd_log_minsize="1M" pdnsd_log_complevel="9" %common pdnsd_pidfile="@@l_prefix@@/var/pdnsd/pdnsd.pid" pdnsd_signal () { [ -f $pdnsd_pidfile ] && kill -$1 `cat $pdnsd_pidfile` } %status -u @@l_susr@@ -o pdnsd_usable="unknown" pdnsd_active="no" rcService pdnsd enable yes && \ pdnsd_signal 0 && pdnsd_active="yes" echo "pdnsd_enable=\"$pdnsd_enable\"" echo "pdnsd_usable=\"$pdnsd_usable\"" echo "pdnsd_active=\"$pdnsd_active\"" %start -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active yes && exit 0 @@l_prefix@@/sbin/pdnsd --daemon -p $pdnsd_pidfile $pdnsd_flags %stop -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active no && exit 0 pdnsd_signal TERM sleep 2 rm -f $pdnsd_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active no && exit 0 rc pdnsd stop start %daily -u @@l_susr@@ rcService pdnsd enable yes || exit 0 shtool rotate -f \ -n ${pdnsd_log_numfiles} -s ${pdnsd_log_minsize} -d \ -z ${pdnsd_log_complevel} -m 664 -o @@l_rusr@@ -g @@l_rgrp@@ \ -P "${pdnsd_log_prolog}" \ -E "${pdnsd_log_epilog}; rc pdnsd restart" \ @@l_prefix@@/var/pdnsd/pdnsd.log @ 1.4.2.1 log @file rc.pdnsd was added on branch OPENPKG_2_STABLE on 2006-10-16 14:54:03 +0000 @ text @d1 55 @ 1.4.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 55 #!@@l_prefix@@/bin/openpkg rc ## ## rc.pdnsd -- Run-Commands ## %config pdnsd_enable="$openpkg_rc_def" pdnsd_flags="-s" pdnsd_log_prolog="true" pdnsd_log_epilog="true" pdnsd_log_numfiles="10" pdnsd_log_minsize="1M" pdnsd_log_complevel="9" %common pdnsd_pidfile="@@l_prefix@@/var/pdnsd/pdnsd.pid" pdnsd_signal () { [ -f $pdnsd_pidfile ] && kill -$1 `cat $pdnsd_pidfile` } %status -u @@l_susr@@ -o pdnsd_usable="unknown" pdnsd_active="no" rcService pdnsd enable yes && \ pdnsd_signal 0 && pdnsd_active="yes" echo "pdnsd_enable=\"$pdnsd_enable\"" echo "pdnsd_usable=\"$pdnsd_usable\"" echo "pdnsd_active=\"$pdnsd_active\"" %start -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active yes && exit 0 @@l_prefix@@/sbin/pdnsd --daemon -p $pdnsd_pidfile $pdnsd_flags %stop -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active no && exit 0 pdnsd_signal TERM sleep 2 rm -f $pdnsd_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService pdnsd enable yes || exit 0 rcService pdnsd active no && exit 0 rc pdnsd stop start %daily -u @@l_susr@@ rcService pdnsd enable yes || exit 0 shtool rotate -f \ -n ${pdnsd_log_numfiles} -s ${pdnsd_log_minsize} -d \ -z ${pdnsd_log_complevel} -m 664 -o @@l_rusr@@ -g @@l_rgrp@@ \ -P "${pdnsd_log_prolog}" \ -E "${pdnsd_log_epilog}; rc pdnsd restart" \ @@l_prefix@@/var/pdnsd/pdnsd.log @ 1.3 log @removal of redundant '-s'/'--status' option @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @ 1.2 log @in rc.*:%daily, restart daemons per default in shtool epilog should a logfile rotation be performed @ text @d33 1 a33 1 @@l_prefix@@/sbin/pdnsd --daemon --status -p $pdnsd_pidfile $pdnsd_flags @ 1.1 log @new package: pdnsd 1.1.8b1par8 (Proxy DNS Daemon) @ text @d53 1 a53 1 -E "${pdnsd_log_epilog} && rc pdnsd restart" \ @