head 1.9; access; symbols OSSP_RC_0_7_3:1.9 OSSP_RC_0_7_2:1.9 OSSP_RC_0_7_1:1.9 OSSP_RC_ALPHA_06:1.8 OSSP_RC_EXBROKEN:1.5; locks; strict; comment @# @; 1.9 date 2003.06.26.18.45.15; author ms; state Exp; branches; next 1.8; 1.8 date 2003.05.28.18.26.48; author ms; state Exp; branches; next 1.7; 1.7 date 2003.05.28.14.45.18; author ms; state Exp; branches; next 1.6; 1.6 date 2003.05.28.13.31.56; author ms; state Exp; branches; next 1.5; 1.5 date 2003.05.22.14.45.15; author ms; state Exp; branches; next 1.4; 1.4 date 2003.05.19.19.05.11; author ms; state Exp; branches; next 1.3; 1.3 date 2003.05.15.22.22.53; author ms; state Exp; branches; next 1.2; 1.2 date 2003.05.14.19.38.24; author ms; state Exp; branches; next 1.1; 1.1 date 2002.07.05.11.16.20; author ms; state Exp; branches; next ; desc @@ 1.9 log @Break off before fully implementing common section run ops, but after reorganization of class data, and additional member functions for section and script manipulation. @ text @#! /bin/sh echo "Run commands NTP starting" %config echo "Starting ntp config section" %common echo "Dis ist de commun sektion von ntp" %test echo "Just an echo to test ntp" %start -p100 -u root echo "Pri 100" opServiceEnabled ntp || exit 0 /sw/sbin/ntp >/dev/null 2>&1 %go -umschloh ping -s design-web.co.uk 56 4 curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl echo $0 echo "And again..." %stop -p 200 -u root kill -TERM `cat /sw/var/ntp/ntp.pid` echo "Run commands NTP finishing" echo @ 1.8 log @Test line spanning sections. @ text @d5 6 @ 1.7 log @Better test for different userid and no whitespace between option. @ text @d18 2 @ 1.6 log @Bug fix section to script extractor, and remove unneeded white space stripper. @ text @d13 2 a14 2 %go ping -a -c 4 dt1.dev.de.cw.net d16 1 a16 1 cat $0 @ 1.5 log @Add a 'test' section that just echos text. @ text @a18 1 opServiceEnabled ntp || exit 0 @ 1.4 log @Write tests for implicit priority feature. @ text @d5 3 @ 1.3 log @Better testing of section priorities. @ text @d5 1 a5 1 %start -p 100 -u root @ 1.2 log @Update and correct test suite, remember privilege issue. @ text @d6 1 @ 1.1 log @Make the test suite at least generic enough so that OSSP rc can be tested on any machine with an OpenPKG repository. @ text @d5 3 a7 3 %start -p 200 -u root opServiceEnabled dhcpd || exit 0 /sw/sbin/dhcpd >/dev/null 2>&1 d15 2 a16 2 opServiceEnabled dhcpd || exit 0 kill -TERM `cat /sw/var/dhcpd/dhcpd.pid` @