infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
How to automatically start processes on Windows retart?
System
Originally posted by Ivan Ng
How to automatically start processes on Windows retart?
Thank you for any replies.
Find more posts tagged with
Clovertech
Comments
System
Originally posted by mario carducci
did you find out any answer?
please may anybody help?
also does anybody have a script to restart processes on windows? i need to schedule this procedure once a week.
many thanks
System
Originally posted by Julie Kimmel
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 <procname> -c "<threadname> 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