Hi everyone...
I want to run 3 scripts (in init.d) as one script (in rc2.d) using "sleep nnn" in between.
(/etc/rc.d/init.d/: script1, script2, script3)
This is what I've tried:
/etc/rc.d/rc2.d/S90_all_of_scripts:
#!/bin/ksh
/etc/rc.d/init.d/script1 $1
sleep 300
/etc/rc.d/init.d/script2 $1
sleep 300
/etc/rc.d/init.d/script3 $1
But it seems like those scripts didn't run like they should be.
# shutdown -Fr
<snip>
Usage: /etc/rc.d/init.d/script1 (start | stop)
Usage: /etc/rc.d/init.d/script2 (start | stop)
Usage: /etc/rc.d/init.d/script3 (start | stop)
<snip>
Could anyone help me to understand, what I've done wrong with S90_all_of_scripts?
More over... how can I use elegantly "sleep nnn" between script1-3 when I shutdown the system?
Thanks in advance.
I want to run 3 scripts (in init.d) as one script (in rc2.d) using "sleep nnn" in between.
(/etc/rc.d/init.d/: script1, script2, script3)
This is what I've tried:
/etc/rc.d/rc2.d/S90_all_of_scripts:
#!/bin/ksh
/etc/rc.d/init.d/script1 $1
sleep 300
/etc/rc.d/init.d/script2 $1
sleep 300
/etc/rc.d/init.d/script3 $1
But it seems like those scripts didn't run like they should be.
# shutdown -Fr
<snip>
Usage: /etc/rc.d/init.d/script1 (start | stop)
Usage: /etc/rc.d/init.d/script2 (start | stop)
Usage: /etc/rc.d/init.d/script3 (start | stop)
<snip>
Could anyone help me to understand, what I've done wrong with S90_all_of_scripts?
More over... how can I use elegantly "sleep nnn" between script1-3 when I shutdown the system?
Thanks in advance.