Index: ossp-pkg/rc/rc_test.sh RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test.sh,v rcsdiff -q -kk '-r1.15' '-r1.16' -u '/v/ossp/cvs/ossp-pkg/rc/rc_test.sh,v' 2>/dev/null --- rc_test.sh 2002/07/04 16:51:49 1.15 +++ rc_test.sh 2002/07/05 11:16:20 1.16 @@ -28,26 +28,26 @@ # test_rc.sh: Run-command processor test script # Test short options, should fail for false combination usage -#echo "./rc -dvef rcfunc/rc.func -hilpsrvxLcqt samba start sleep=2 restart" -#./rc -dVef rcfunc/rc.func -hilpsrvxLcqt samba start sleep=2 restart +#echo "./rc -dvef ./rc_test/rcfuncs -hilpsrvxLcqt samba start sleep=2 restart" +#./rc -dVef ./rc_test/rcfuncs -hilpsrvxLcqt samba start sleep=2 restart # Test short options, should succeed -#echo; echo "./rc -derv -L /u/ms/ossp/rc/rcdings/rcfiles/rc.%{RCFILE:s/^all$/*/} -c /u/ms/ossp/rc/rcdings/rc.conf -f /u/ms/ossp/rc/rcfunc/rc.func -t /tmp openssh stop sleep=4 start daily minsize=2097152" -#./rc -derv -L /u/ms/ossp/rc/rcdings/rcfiles/rc.d/rc.%{RCFILE:s/^all$/*/} -c /u/ms/ossp/rc/rcdings/rc.conf -f /u/ms/ossp/rc/rcfunc/rc.func -t /tmp openssh stop sleep=4 start daily minsize=2097152 +#echo; echo "./rc -derv -L ./rc_test/rc.%{RCFILE:s/^all$/*/} -c ./rc.conf -f ./rc_test/rcfuncs -t /tmp openssh stop sleep=4 start daily minsize=2097152" +#./rc -derv -L ./rc_test/rc.d/rc.%{RCFILE:s/^all$/*/} -c ./rc.conf -f ./rc_test/rcfuncs -t /tmp openssh stop sleep=4 start daily minsize=2097152 # Test some long options, should fail for false combination usage echo; echo "./rc --verbose --silent --ParseSectionDef \"%(.+)\" uucp stop sleep=6 start" ./rc --verbose --silent --ParseSectionDef "%(.+)" uucp stop sleep=6 start echo; echo "./rc --query myvar --silent --ParseSectionDef \"%(.+)\" zebra bing bang" ./rc --query myvar --silent --ParseSectionDef "%(.+)" zebra bing bang -echo; echo "./rc --conf /sfw/rc.conf --ParseSectionDef \"%(.+)\" --locate /u/ms/ossp/rc/rcdings/rcfiles/ --query this barf test" -./rc --conf /sfw/rc.conf --ParseSectionDef "%(.+)" --locate /u/ms/ossp/rc/rcdings/rcfiles/ --query this barf test +echo; echo "./rc --conf /usr/opkg/etc/rc.conf --ParseSectionDef \"%(.+)\" --locate ./rc_test/ --query this barf test" +./rc --conf /usr/opkg/etc/rc.conf --ParseSectionDef "%(.+)" --locate ./rc_test/ --query this barf test # Test minimal set of long options, should succeed echo; echo "./rc --debug --version --ParseSectionDef \"%(.+)\" rsyncd nothing matters but the version" ./rc --debug --version --ParseSectionDef "%" rsyncd nothing matters but the version -echo; echo "./rc --conf /sfw/rc.conf --ParseSectionDef \"%(.+)\" --locate /cw/etc/rc.d:/u/ms/ossp/rc/rcdings/rcfiles:/etc/rc --query all barf test" -./rc --conf /sfw/rc.conf --ParseSectionDef "%(.+)" --locate /cw/etc/rc.d:/u/ms/ossp/rc/rcdings/rcfiles:/etc/rc --query all barf test +echo; echo "./rc --conf /usr/opkg/etc/rc.conf --ParseSectionDef \"%(.+)\" --locate /usr/opkg/etc/rc.d:./rc_test:/etc/rc --query all barf test" +./rc --conf /usr/opkg/etc/rc.conf --ParseSectionDef "%(.+)" --locate /usr/opkg/etc/rc.d:./rc_test:/etc/rc --query all barf test # FIXME these cases are not handled yet by our configuration FIXME # #echo; echo "./rc --debug --version" @@ -58,46 +58,46 @@ #./rc --debug --info --verbose #echo; echo "./rc --conf /etc/rc.conf --debug --info --raw" #./rc --conf /etc/rc.conf --debug --info --raw -#echo; echo "./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd" -#./rc --conf /sfw/rc.conf --tmp /sfw/RPM/TMP --debug --labels rsyncd +#echo; echo "./rc --conf /usr/opkg/etc/rc.conf --tmp /tmp --debug --labels rsyncd" +#./rc --conf /usr/opkg/etc/rc.conf --tmp /tmp --debug --labels rsyncd # FIXME these cases are not handled yet by our configuration FIXME # -echo; echo "./rc --func /u/ms/ossp/rc/rcfunc/rc.func --print --ParseSectionDef \"%(.+)\" --verbose openssh stop sleep=4 start" -./rc --func /u/ms/ossp/rc/rcfunc/rc.func --print --ParseSectionDef "%(.+)" --verbose openssh stop sleep=4 start -echo; echo "./rc --func /u/ms/ossp/rc/rcfunc/rc.func --info --eval uucp restart" -./rc --func /u/ms/ossp/rc/rcfunc/rc.func --info --eval uucp restart -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --ParseSectionDef \"%(.+)\" --print uucp start" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --ParseSectionDef "%(.+)" --print uucp start -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --debug --ParseSectionDef \"%(.+)\" --print ntp sync" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --debug --ParseSectionDef "%(.+)" --print ntp sync -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --debug --silent --ParseSectionDef \"%(.+)\" --print ralf feed suppe" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func --tmp /tmp --debug --silent --ParseSectionDef "%(.+)" --print ralf feed suppe -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --print samba search finish destroy" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef "%(.+)" --tmp /tmp --silent --print samba search finish destroy - -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --print all feed suppe" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef "%(.+)" --tmp /tmp --silent --print all feed suppe - -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print all config barf gag" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print all config barf gag - -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --eval all config start" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --eval all config start - -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --exec all config start" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --exec all config start - -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print pam info" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print pam info +echo; echo "./rc --func rc_test/rcfuncs --print --ParseSectionDef \"%(.+)\" --verbose openssh stop sleep=4 start" +./rc --func rc_test/rcfuncs --print --ParseSectionDef "%(.+)" --verbose openssh stop sleep=4 start +echo; echo "./rc --func ./rc_test/rcfuncs --info --eval uucp restart" +./rc --func ./rc_test/rcfuncs --info --eval uucp restart +echo; echo "./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --ParseSectionDef \"%(.+)\" --print uucp start" +./rc --conf rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --ParseSectionDef "%(.+)" --print uucp start +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --ParseSectionDef \"%(.+)\" --print ntp sync" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --ParseSectionDef "%(.+)" --print ntp sync +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --ParseSectionDef \"%(.+)\" --print ralf feed suppe" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs --tmp /tmp --debug --silent --ParseSectionDef "%(.+)" --print ralf feed suppe +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --print samba search finish destroy" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L rc_test --ParseSectionDef "%(.+)" --tmp /tmp --silent --print samba search finish destroy + +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --print all feed suppe" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test --ParseSectionDef "%(.+)" --tmp /tmp --silent --print all feed suppe + +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print all config barf gag" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print all config barf gag + +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --eval all config start" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --eval all config start + +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --exec all config start" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --exec all config start + +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print pam info" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print pam info -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print apache config start" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /sw/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print apache config start +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef \"%(.+)\" --tmp /tmp --silent --debug --print apache config start" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L /usr/opkg/etc/rc.d --ParseSectionDef "%(.+)" --tmp /tmp --silent --debug --print apache config start -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef \"<(.+)>\" --tmp /tmp --silent --debug --print all config start" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef "<(.+)>" --tmp /tmp --silent --debug --print all config start +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef \"<(.+)>\" --tmp /tmp --silent --debug --print all config start" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef "<(.+)>" --tmp /tmp --silent --debug --print all config start -echo; echo "./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef \"<(.+)>\" --tmp /tmp --silent --debug --print pam info" -./rc --conf rcdings/myrc.conf --func /u/ms/ossp/rc/rcfunc/rc.func -L /u/ms/ossp/rc/rcfiles/ --ParseSectionDef "<(.+)>" --tmp /tmp --silent --debug --print pam info +echo; echo "./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef \"<(.+)>\" --tmp /tmp --silent --debug --print pam info" +./rc --conf ./rc_test/myrc.conf --func ./rc_test/rcfuncs -L ./rc_test/ --ParseSectionDef "<(.+)>" --tmp /tmp --silent --debug --print pam info # Next milestone #RequireOwner Index: ossp-pkg/rc/rc_test/rc.ntp RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.ntp,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.ntp,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.ntp' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.ntp +++ - 2024-05-04 17:14:04.079514174 +0200 @@ -0,0 +1,20 @@ +#! /bin/sh + +echo "Run commands NTP starting" + +%start -p 200 -u root + opServiceEnabled dhcpd || exit 0 + /sw/sbin/dhcpd >/dev/null 2>&1 + +%go + ping -a -c 4 dt1.dev.de.cw.net + curl -s ftp://ftp.openpkg.org/current/SRC/ | grep openssl + cat $0 + +%stop -p 200 -u root + opServiceEnabled dhcpd || exit 0 + kill -TERM `cat /sw/var/dhcpd/dhcpd.pid` + +echo "Run commands NTP finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.openssh RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.openssh,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.openssh,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.openssh' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.openssh +++ - 2024-05-04 17:14:04.082157922 +0200 @@ -0,0 +1,18 @@ +#! /bin/sh + +echo "Run commands openssh starting" + +sync +sync + +echo "Defining aliases" +alias eben=sogar +alias harpo=dasboot +alias +alias michael=normandie +alias diego=maradona +alias + +echo "Run commands openssh finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.pam RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.pam,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.pam,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.pam' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.pam +++ - 2024-05-04 17:14:04.084766358 +0200 @@ -0,0 +1,20 @@ +#!/sw/lib/openpkg/bash /sw/etc/rc +## +## rc.pam -- Run-Commands for PAM +## + + + pam_enable="yes" + pam_cfgloc='/etc/pam.conf' + pam_modpfx='' + pam_incdir='/usr/include' + pam_libdir='/usr/lib' + + + + echo "PAM Enabled: ${pam_enable}" + echo "PAM Config Location: ${pam_cfgloc}" + echo "PAM Module Prefix: ${pam_modpfx}" + echo "PAM Include Directory: ${pam_incdir}" + echo "PAM Library Directory: ${pam_libdir}" + Index: ossp-pkg/rc/rc_test/rc.ralf RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.ralf,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.ralf,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.ralf' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.ralf +++ - 2024-05-04 17:14:04.087321210 +0200 @@ -0,0 +1,13 @@ +#!/bin/sh + +echo "Run commands RALF starting" + +RALF="NiceGuy" +HEILO="RockRoll" +echo "$RALF s play $HEILO" +echo +finger + +echo "Run commands RALF finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.rsyncd RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.rsyncd,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.rsyncd,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.rsyncd' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.rsyncd +++ - 2024-05-04 17:14:04.089898520 +0200 @@ -0,0 +1,10 @@ +#! /bin/sh + +echo "Run commands Rsyncd starting" + +ls /tmp +which shutdown + +echo "Run commands Rsyncd finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.samba RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.samba,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.samba,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.samba' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.samba +++ - 2024-05-04 17:14:04.092394174 +0200 @@ -0,0 +1,15 @@ +#! /bin/sh + +echo "Run commands Samba starting" + +%search + whois cyvaned.com + +%destroy + ldd /usr/lib/libpcap.so + +%finish + echo "Dun with everything" + echo "Run commands Samba finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.uucp RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.uucp,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.uucp,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.uucp' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.uucp +++ - 2024-05-04 17:14:04.094956573 +0200 @@ -0,0 +1,12 @@ +#! /bin/sh + +echo "Run commands UUCP starting" + +ls / +pwd +whoami +which rpm + +echo "Run commands UUCP finishing" +echo + Index: ossp-pkg/rc/rc_test/rc.zebra RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rc.zebra,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rc.zebra,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rc.zebra' 2>/dev/null --- ossp-pkg/rc/rc_test/rc.zebra +++ - 2024-05-04 17:14:04.097487936 +0200 @@ -0,0 +1,14 @@ +#! /bin/sh + +echo "Run commands Zebra starting" + +pwd +users +echo $PATH | md5 +echo $PRINTER +echo +netstat -p tcp + +echo "Run commands Zebra finishing" +echo + Index: ossp-pkg/rc/rc_test/rcfuncs RCS File: /v/ossp/cvs/ossp-pkg/rc/rc_test/rcfuncs,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/rc/rc_test/rcfuncs,v' | diff -u /dev/null - -L'ossp-pkg/rc/rc_test/rcfuncs' 2>/dev/null --- ossp-pkg/rc/rc_test/rcfuncs +++ - 2024-05-04 17:14:04.100066476 +0200 @@ -0,0 +1,15 @@ +#! /bin/sh + +echo "**** Funcfile ist hier und wirds gemerged ****" +echo "And again" >>disfile.txt +cat disfile.txt | md5 >>disfile.txt +uname -a + +echo "Peter SMEJ ist chef Entwickler." +echo "Thomas LOTTERER ist chef Entwickler." +echo "Michael SCHLOH ist chef Entwickler." +echo "Ralf ENGELSCHALL ist aber chef-chef Entwickler!" + +echo "**** Funcfile ist fertig, rc gehts weiter ****" +echo +