head 1.5; access; symbols OPENPKG_E1_MP_HEAD:1.5 OPENPKG_E1_MP:1.5 OPENPKG_E1_MP_2_STABLE:1.5.8.2 OPENPKG_E1_FP:1.5.8.2 OPENPKG_2_STABLE_MP:1.5 OPENPKG_2_STABLE_20061018:1.5.8.2 OPENPKG_2_STABLE:1.5.0.8 OPENPKG_2_5_RELEASE:1.5 OPENPKG_2_5_SOLID:1.5.0.6 OPENPKG_2_5_SOLID_BP:1.5 OPENPKG_2_4_RELEASE:1.5 OPENPKG_2_4_SOLID:1.5.0.4 OPENPKG_2_4_SOLID_BP:1.5 OPENPKG_CW_FP:1.5 OPENPKG_2_3_RELEASE:1.5 OPENPKG_2_3_SOLID:1.5.0.2 OPENPKG_2_3_SOLID_BP:1.5; locks; strict; comment @# @; 1.5 date 2004.08.04.10.33.36; author ms; state Exp; branches 1.5.8.1; next 1.4; 1.4 date 2004.03.26.15.42.28; author ms; state Exp; branches; next 1.3; 1.3 date 2004.03.23.15.16.24; author ms; state Exp; branches; next 1.2; 1.2 date 2004.03.23.13.14.41; author ms; state Exp; branches; next 1.1; 1.1 date 2004.03.22.17.46.31; author ms; state Exp; branches; next ; 1.5.8.1 date 2004.08.04.10.33.36; author rse; state dead; branches; next 1.5.8.2; commitid iZxwRSmmWscPXUQr; 1.5.8.2 date 2006.10.16.14.55.45; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.5 log @move configfile variable to make location of configfile itself customizable @ text @#!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc ## ## rc.ripe-dbase -- Run-Commands ## %config ripe_dbase_enable="$openpkg_rc_def" ripe_dbase_cfgfile="@@l_prefix@@/etc/ripe-dbase/rip.config.sample" %common ripe_dbase_pidfile="@@l_prefix@@/var/ripe-dbase/whois_rip.pid" ripe_dbase_signal () { [ -f $ripe_dbase_pidfile ] && kill -$1 `cat $ripe_dbase_pidfile` } %status -u @@l_susr@@ -o ripe_dbase_usable="unknown" ripe_dbase_active="no" rcService ripe-dbase enable yes && \ ripe_dbase_signal 0 && ripe_dbase_active="yes" echo "ripe_dbase_enable=\"$ripe_dbase_enable\"" echo "ripe_dbase_usable=\"$ripe_dbase_usable\"" echo "ripe_dbase_active=\"$ripe_dbase_active\"" %start -u @@l_susr@@ # main server rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active yes && exit 0 nohup @@l_prefix@@/bin/whois_rip -p ${ripe_dbase_pidfile} \ -c ${ripe_dbase_cfgfile} & # filter server rcService ripe-filter enable yes || exit 0 rcService ripe-filter active yes && exit 0 rc ripe-filter start %stop -u @@l_susr@@ # main server rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active no && exit 0 ripe_dbase_signal TERM sleep 6 # filter server rcService ripe-filter enable yes || exit 0 rcService ripe-filter active no && exit 0 rc ripe-filter stop %restart -u @@l_susr@@ rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active no && exit 0 rc ripe-dbase stop start @ 1.5.8.1 log @file rc.ripe-dbase.extobjs was added on branch OPENPKG_2_STABLE on 2006-10-16 14:55:45 +0000 @ text @d1 51 @ 1.5.8.2 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @a0 51 #!@@l_prefix@@/lib/openpkg/bash @@l_prefix@@/etc/rc ## ## rc.ripe-dbase -- Run-Commands ## %config ripe_dbase_enable="$openpkg_rc_def" ripe_dbase_cfgfile="@@l_prefix@@/etc/ripe-dbase/rip.config.sample" %common ripe_dbase_pidfile="@@l_prefix@@/var/ripe-dbase/whois_rip.pid" ripe_dbase_signal () { [ -f $ripe_dbase_pidfile ] && kill -$1 `cat $ripe_dbase_pidfile` } %status -u @@l_susr@@ -o ripe_dbase_usable="unknown" ripe_dbase_active="no" rcService ripe-dbase enable yes && \ ripe_dbase_signal 0 && ripe_dbase_active="yes" echo "ripe_dbase_enable=\"$ripe_dbase_enable\"" echo "ripe_dbase_usable=\"$ripe_dbase_usable\"" echo "ripe_dbase_active=\"$ripe_dbase_active\"" %start -u @@l_susr@@ # main server rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active yes && exit 0 nohup @@l_prefix@@/bin/whois_rip -p ${ripe_dbase_pidfile} \ -c ${ripe_dbase_cfgfile} & # filter server rcService ripe-filter enable yes || exit 0 rcService ripe-filter active yes && exit 0 rc ripe-filter start %stop -u @@l_susr@@ # main server rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active no && exit 0 ripe_dbase_signal TERM sleep 6 # filter server rcService ripe-filter enable yes || exit 0 rcService ripe-filter active no && exit 0 rc ripe-filter stop %restart -u @@l_susr@@ rcService ripe-dbase enable yes || exit 0 rcService ripe-dbase active no && exit 0 rc ripe-dbase stop start @ 1.4 log @update whois_filt script, add primitive std[err|out] logging to rc.ripe-filter, and remove daily section logic from rip_whois process which logs using ISO dates already @ text @d8 1 a11 1 ripe_dbase_cfgfile="@@l_prefix@@/etc/ripe-dbase/rip.config.sample" @ 1.3 log @rename rc file again, add rc.ripe-filter for dual daemon manipulation, correct conditional rc file inclusion logic @ text @a7 5 ripe_dbase_log_prolog="true" ripe_dbase_log_epilog="true" ripe_dbase_log_numfiles="10" ripe_dbase_log_minsize="1M" ripe_dbase_log_complevel="9" a50 11 %daily -u @@l_susr@@ rcService ripe-dbase enable yes || exit 0 # rotate logfile shtool rotate -f \ -n ${ripe_dbase_log_numfiles} -s ${ripe_dbase_log_minsize} -d \ -z ${ripe_dbase_log_complevel} -m 644 -o @@l_susr@@ -g @@l_sgrp@@ \ -P "${ripe_dbase_log_prolog}" \ -E "${ripe_dbase_log_epilog} && rc ripe_dbase restart" \ @@l_prefix@@/var/ripe-dbase/log/whois_rip.err.log @ 1.2 log @rename whois_filt config file, and extend rc.ripe-dbase.extobjs to give info on whois_filt @ text @a7 1 rip_filter_enable="$openpkg_rc_def" a15 1 ripe_filter_pidfile="@@l_prefix@@/var/ripe-dbase/whois_filt.pid" a19 3 ripe_filter_signal () { [ -f $ripe_filter_pidfile ] && kill -$1 `cat $ripe_filter_pidfile` } a23 2 ripe_filter_usable="unknown" ripe_filter_active="no" a25 2 rcService ripe-filter enable yes && \ ripe_filter_signal 0 && ripe_filter_active="yes" a28 3 echo "ripe_filter_enable=\"$ripe_filter_enable\"" echo "ripe_filter_usable=\"$ripe_filter_usable\"" echo "ripe_filter_active=\"$ripe_filter_active\"" d36 4 a39 4 # perl filter rcService rip_filter enable yes || exit 0 rcService rip_filter active yes && exit 0 @@l_prefix@@/bin/whois_filt d42 1 d46 5 a50 1 sleep 8 @ 1.1 log @conditionally (with_extobjs yes) add whois_filt.pl, whois_filt.conf, and rc.ripe-dbase.extobjs to buildconf @ text @d16 2 a17 2 ripe_dbase_pidrip="@@l_prefix@@/var/ripe-dbase/whois_rip.pid" ripe_dbase_pidfilt="@@l_prefix@@/var/ripe-dbase/whois_filt.pid" d22 3 d29 2 d33 2 d38 3 @