Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. General Discussion
  3. IW4MAdmin Scheduled restarts

IW4MAdmin Scheduled restarts

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 132 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SuckOnMyPronessundefined Offline
    SuckOnMyPronessundefined Offline
    SuckOnMyProness
    wrote on last edited by
    #1

    Hello Plutonium,

    I wonder how I can create scheduled restarts for IW4MAdmin. I want to create a scheduled task on my windows server but I cannot think of a way to close a specific conhost.exe hence I have multiple instances running for IW4MAdmin and the respective Pluto/Tekno Servers. The PID changes after every execution so otherwise I would have just run taskkill /IW PID. Any Idea how to schedule a restart?

    mxveundefined 1 Reply Last reply
    0
    • SuckOnMyPronessundefined SuckOnMyProness

      Hello Plutonium,

      I wonder how I can create scheduled restarts for IW4MAdmin. I want to create a scheduled task on my windows server but I cannot think of a way to close a specific conhost.exe hence I have multiple instances running for IW4MAdmin and the respective Pluto/Tekno Servers. The PID changes after every execution so otherwise I would have just run taskkill /IW PID. Any Idea how to schedule a restart?

      mxveundefined Offline
      mxveundefined Offline
      mxve
      VIP
      wrote on last edited by mxve
      #2

      SuckOnMyProness
      save pid to file when starting, kill pid when restarting

      something like this should work for saving the pid
      powershell -Command "(Start-Process whatever.exe -passthru).ID | Out-File -FilePath pid.txt"

      make sure to give the pid file a unique name for every instance you have running and when restarting read the pid from the file to kill the process.

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate