Each Job should have a job options tab with a 'Reboot Options' paramiter. You could set this to "Ignore item defined reboot setting" for the jobs where you dont want to reboot. The last job in the batch queue could execute the reboot...
Thanks Scott unfortunately this doesn't solve our problem.
Our problem is not stopping the remaining packages from running, rather our issue is getting the remaining packages to wait until the server has completed rebooting into single user mode before continuing.
Package 1 sets single user mode manually and reboots into single user mode.
/usr/sbin/svccfg -s svc:/system/svc/restarter:default delpg options
/usr/sbin/svccfg -s svc:/system/svc/restarter:default addpg options application
/usr/sbin/svccfg -s svc:/system/svc/restarter:default addpropvalue options/milestone astring: svc:/milestone/single-user:default
/sbin/init 6 < /dev/null > /dev/null 2>&1
I then need to run 6 other packages.
Then after the 7 package installs I need to reboot to runlevel 3.
Are you able to advise what combination of Job Options and reboot/single user options I should use in the packages to accomplish this?
There are a few ways to do this. One is to create an nsh script that loops an agentinfo against the target and doesn’t leave the loop until the command gets an appropriate response. This proves that not only the server is up, but that its agent is listening and accepting communication.