head 1.6; access; symbols OSSP_RC_0_7_3:1.6 OSSP_RC_0_7_2:1.6 OSSP_RC_0_7_1:1.6 OSSP_RC_ALPHA_06:1.6 OSSP_RC_EXBROKEN:1.6; locks; strict; comment @# @; 1.6 date 2003.05.22.14.45.14; author ms; state Exp; branches; next 1.5; 1.5 date 2003.05.19.19.05.11; author ms; state Exp; branches; next 1.4; 1.4 date 2003.05.15.22.22.53; author ms; state Exp; branches; next 1.3; 1.3 date 2003.04.03.12.05.16; author ms; state Exp; branches; next 1.2; 1.2 date 2002.08.01.14.31.39; author ms; state Exp; branches; next 1.1; 1.1 date 2002.07.30.16.36.42; author ms; state Exp; branches; next ; desc @@ 1.6 log @Add a 'test' section that just echos text. @ text @#! /bin/sh echo "Run commands DHCPD starting" %config dhcpd_enable="yes" hacking="ofcourse" %test echo "Just an echo to test dhcpd" %start -p 220 -u root echo "Pri 220" opServiceEnabled dhcpd || exit 0 /sw/sbin/dhcpd %gotest echo "Doing gotest section in file rc.dhcpd" ping -a -c 4 dt1.dev.de.cw.net curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl date echo $0 if [ $hacking = ofcourse ]; then echo "Yes, of course" else echo "There is no hacking" fi # cat $0 %stop -p 200 -u root opServiceEnabled dhcpd || exit 0 kill -TERM `cat /sw/var/dhcpd/dhcpd.pid` echo "Run commands DHCPD finishing" echo @ 1.5 log @Write tests for implicit priority feature. @ text @d9 3 @ 1.4 log @Better testing of section priorities. @ text @d9 2 a10 2 %start -p 200 -u root echo "Pri 200" @ 1.3 log @Bring rc back to life, corrected the processor and script object memory problems, and made small changes to test suite. @ text @d10 1 @ 1.2 log @Some minor test changes and documentation. @ text @d14 1 @ 1.1 log @Implemented command execution mode, and now OSSP rc is dangerous to use because it will actually execute code. Test suite is adjusted accordingly. @ text @d7 1 d18 5 @