How to automatically start processes on Windows retart?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to automatically start processes on Windows retart?

  • Creator
    Topic
  • #48983
    Ivan Ng
    Participant

      How to automatically start processes on Windows retart?

      Thank you for any replies.

    Viewing 1 reply thread
    • Author
      Replies
      • #60317
        mario carducci
        Participant

          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

        • #60318
          Julie Kimmel
          Participant

            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

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.