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.20.12; author rse; state Exp; branches 1.2.2.1; next 1.1; commitid Tvsj1UyQ8rQ89gKr; 1.1 date 2005.12.31.16.21.17; author rse; state Exp; branches; next ; commitid yp0El7OarivZNMfr; 1.2.2.1 date 2006.08.25.19.20.12; author rse; state dead; branches; next 1.2.2.2; commitid iZxwRSmmWscPXUQr; 1.2.2.2 date 2006.10.16.14.57.33; 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.unfsd -- Run-Commands ## %config unfsd_enable="$openpkg_rc_def" unfsd_bind="127.0.0.1" unfsd_flags="" unfsd_log_prolog="true" unfsd_log_epilog="true" unfsd_log_numfiles="10" unfsd_log_minsize="1M" unfsd_log_complevel="9" %common unfsd_pidfile="@@l_prefix@@/var/unfsd/unfsd.pid" unfsd_logfile="@@l_prefix@@/var/unfsd/unfsd.log" unfsd_signal () { [ -f $unfsd_pidfile ] && kill -$1 `cat $unfsd_pidfile` } %status -u @@l_susr@@ -o unfsd_usable="unknown" unfsd_active="no" rcService unfsd enable yes && \ unfsd_signal 0 && unfsd_active="yes" echo "unfsd_enable=\"$unfsd_enable\"" echo "unfsd_usable=\"$unfsd_usable\"" echo "unfsd_active=\"$unfsd_active\"" %start -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active yes && exit 0 ( nohup @@l_prefix@@/sbin/unfsd \ -d -l ${unfsd_bind} \ -e @@l_prefix@@/etc/unfsd/unfsd.exports \ ${unfsd_flags} \ /dev/null 2>&1 & echo $! >$unfsd_pidfile ) >/dev/null 2>&1 %stop -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active no && exit 0 unfsd_signal TERM sleep 2 rm -f $unfsd_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active no && exit 0 rc unfsd stop start %daily -u @@l_susr@@ rcService unfsd enable yes || exit 0 shtool rotate -f \ -n ${unfsd_log_numfiles} -s ${unfsd_log_minsize} -d \ -z ${unfsd_log_complevel} -m 664 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${unfsd_log_prolog}" \ -E "${unfsd_log_epilog}; rc unfsd restart" \ $unfsd_logfile @ 1.2.2.1 log @file rc.unfsd was added on branch OPENPKG_2_STABLE on 2006-10-16 14:57:33 +0000 @ text @d1 63 @ 1.2.2.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 63 #!@@l_prefix@@/bin/openpkg rc ## ## rc.unfsd -- Run-Commands ## %config unfsd_enable="$openpkg_rc_def" unfsd_bind="127.0.0.1" unfsd_flags="" unfsd_log_prolog="true" unfsd_log_epilog="true" unfsd_log_numfiles="10" unfsd_log_minsize="1M" unfsd_log_complevel="9" %common unfsd_pidfile="@@l_prefix@@/var/unfsd/unfsd.pid" unfsd_logfile="@@l_prefix@@/var/unfsd/unfsd.log" unfsd_signal () { [ -f $unfsd_pidfile ] && kill -$1 `cat $unfsd_pidfile` } %status -u @@l_susr@@ -o unfsd_usable="unknown" unfsd_active="no" rcService unfsd enable yes && \ unfsd_signal 0 && unfsd_active="yes" echo "unfsd_enable=\"$unfsd_enable\"" echo "unfsd_usable=\"$unfsd_usable\"" echo "unfsd_active=\"$unfsd_active\"" %start -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active yes && exit 0 ( nohup @@l_prefix@@/sbin/unfsd \ -d -l ${unfsd_bind} \ -e @@l_prefix@@/etc/unfsd/unfsd.exports \ ${unfsd_flags} \ /dev/null 2>&1 & echo $! >$unfsd_pidfile ) >/dev/null 2>&1 %stop -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active no && exit 0 unfsd_signal TERM sleep 2 rm -f $unfsd_pidfile >/dev/null 2>&1 || true %restart -u @@l_susr@@ rcService unfsd enable yes || exit 0 rcService unfsd active no && exit 0 rc unfsd stop start %daily -u @@l_susr@@ rcService unfsd enable yes || exit 0 shtool rotate -f \ -n ${unfsd_log_numfiles} -s ${unfsd_log_minsize} -d \ -z ${unfsd_log_complevel} -m 664 -o @@l_susr@@ -g @@l_mgrp@@ \ -P "${unfsd_log_prolog}" \ -E "${unfsd_log_epilog}; rc unfsd restart" \ $unfsd_logfile @ 1.1 log @new package: unfsd 0.9.13 (User-space NFSv3 Server) @ text @d1 1 a1 1 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc @