Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

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

IW4MAdmin Scheduled restarts

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 288 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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      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
      • Unread 0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups