IW4MAdmin Scheduled restarts
-
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?
-
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?
SuckOnMyProness
save pid to file when starting, kill pid when restartingsomething 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.
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