head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2.2.2 OPENPKG_E1_FP:1.2.2.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2.2.2 OPENPKG_2_STABLE:1.2.0.2; locks; strict; comment @# @; 1.2 date 2006.08.25.19.15.56; author rse; state Exp; branches 1.2.2.1; next 1.1; commitid Tvsj1UyQ8rQ89gKr; 1.1 date 2006.05.23.13.34.02; author rse; state Exp; branches; next ; commitid ZZQxxvArDQLCh9yr; 1.2.2.1 date 2006.08.25.19.15.56; author rse; state dead; branches; next 1.2.2.2; commitid iZxwRSmmWscPXUQr; 1.2.2.2 date 2006.10.16.14.47.57; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.2 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.arpalert -- Run-Commands ## %config arpalert_enable="$openpkg_rc_def" arpalert_flags="" arpalert_log_prolog="true" arpalert_log_epilog="true" arpalert_log_numfiles="10" arpalert_log_minsize="1M" arpalert_log_complevel="9" %common arpalert_pidfile="@@l_prefix@@/var/arpalert/run/arpalert.pid" arpalert_logfile="@@l_prefix@@/var/arpalert/log/arpalert.log" arpalert_signal () { [ -f $arpalert_pidfile ] && kill -$1 `cat $arpalert_pidfile` } %status -u @@l_susr@@ -o arpalert_usable="unknown" arpalert_active="no" rcService arpalert enable yes && \ arpalert_signal 0 && arpalert_active="yes" echo "arpalert_enable=\"$arpalert_enable\"" echo "arpalert_usable=\"$arpalert_usable\"" echo "arpalert_active=\"$arpalert_active\"" %start -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active yes && exit 0 @@l_prefix@@/sbin/arpalert ${arpalert_flags} %stop -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active no && exit 0 arpalert_signal TERM sleep 2 rm -f $arpalert_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active no && exit 0 rc arpalert stop start %daily -u @@l_susr@@ rcService arpalert enable yes || exit 0 shtool rotate -f \ -n ${arpalert_log_numfiles} -s ${arpalert_log_minsize} -d \ -z ${arpalert_log_complevel} -m 664 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${arpalert_log_prolog}" \ -E "${arpalert_log_epilog}; rc arpalert restart" \ $arpalert_logfile @ 1.2.2.1 log @file rc.arpalert was added on branch OPENPKG_2_STABLE on 2006-10-16 14:47:57 +0000 @ text @d1 56 @ 1.2.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 56 #!@@l_prefix@@/bin/openpkg rc ## ## rc.arpalert -- Run-Commands ## %config arpalert_enable="$openpkg_rc_def" arpalert_flags="" arpalert_log_prolog="true" arpalert_log_epilog="true" arpalert_log_numfiles="10" arpalert_log_minsize="1M" arpalert_log_complevel="9" %common arpalert_pidfile="@@l_prefix@@/var/arpalert/run/arpalert.pid" arpalert_logfile="@@l_prefix@@/var/arpalert/log/arpalert.log" arpalert_signal () { [ -f $arpalert_pidfile ] && kill -$1 `cat $arpalert_pidfile` } %status -u @@l_susr@@ -o arpalert_usable="unknown" arpalert_active="no" rcService arpalert enable yes && \ arpalert_signal 0 && arpalert_active="yes" echo "arpalert_enable=\"$arpalert_enable\"" echo "arpalert_usable=\"$arpalert_usable\"" echo "arpalert_active=\"$arpalert_active\"" %start -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active yes && exit 0 @@l_prefix@@/sbin/arpalert ${arpalert_flags} %stop -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active no && exit 0 arpalert_signal TERM sleep 2 rm -f $arpalert_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService arpalert enable yes || exit 0 rcService arpalert active no && exit 0 rc arpalert stop start %daily -u @@l_susr@@ rcService arpalert enable yes || exit 0 shtool rotate -f \ -n ${arpalert_log_numfiles} -s ${arpalert_log_minsize} -d \ -z ${arpalert_log_complevel} -m 664 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${arpalert_log_prolog}" \ -E "${arpalert_log_epilog}; rc arpalert restart" \ $arpalert_logfile @ 1.1 log @new package: arpalert 1.0.2 (ARP Network Monitoring & Alerting) @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @