I have 3 .bat files that I use to start processes upon a restart of Windows:
StartUp.bat
call settheroot
call setthesite mysite1
hcienginerun -p myprocess1
hcienginerun -p myprocess2
call setthesite mysite2
hcienginerun -p myprocess2
… etc …
(or you can find a way to loop through…but to get you up quickly…hard code them in)
settheroot.bat
setroot
setthesite.bat
setsite %1
Then I set up StartUp.bat as a scheduled job in Windows, schuduled to run upon startup.
As for scheduling a restart of processes, you could write similar batch scripts using hcienginestop to stop the processes and the hcienginerun to start them back up. It is best to stop the inbound threads before stopping processes….I believe the command is:
hcicmd -p -c “ pstop”
So…again…for a quick method…you could write batch files with hard coded process and thread names. I don’t know if it is the most efficient way, and I am sure that people have much more elegant methods out there…but it works.
Julie