Jump to content

%reboot% query


Recommended Posts

I'm using the command %reboot% to reboot my server and then to resume where it left off on reboot and logon.

This works fine for the first reboot.

i.e. step1 runs, reboots, logon, step2 runs, starts reboot process but also starts running step3. The reboot completes and step3 gets killed by the reboot.

step3 seems to restart after this reboot (as long as it didn't finish before the reboot completed) but you end up with a messy install.

I have created a simplified config to test this and it always has the issue with the second %reboot% and not the specific command.

I have attached a copy of the WPI Logfile, and as you can see @ 11:07:41 it ran "shutdown -r -f -t 30"

It then followed that up at 11:07:44 by running step3.cmd and trying a new shutdown.exe (which failed because it was already running a shutdown.exe from 11:07:41)

I have several %reboot% required in my final script and would appreciate any pointers that can help.

TIA

Mark

config.js


pn=1;
prog[pn]=['Application 1'];
uid[pn]=['APPLICATION1'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step1.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

prog[pn]=['Application 2'];
uid[pn]=['APPLICATION2'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step2.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

prog[pn]=['Application 3'];
uid[pn]=['APPLICATION3'];
dflt[pn]=['yes'];
cat[pn]=['Applications'];
forc[pn]=['no'];
cmd1[pn]=['"E:\\Install\\tidyup\\step3.cmd"'];
cmd2[pn]=['%reboot% 30'];
pn++;

Step1.cmd

@echo off
echo This is step 1
pause

Step2.cmd

@echo off
echo This is step 2
pause

Step3.cmd

@echo off
echo This is step 3
pause

WPI_Log.txt

Link to comment
Share on other sites


I just had %reboot% 30 in there for the purposes of testing this and it was default.

Have lowered the setting (%reboot% 3) and also entered a sleep command of %sleep% 4 (i.e. one second longer).

This has given me a workaroumd but am still at a loss as to why it should work for the first reboot and not subsequent reboots.

Thanks, maybe I should just use %reboot% and the problem will go away or not be noticed.

Thx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...