Skip to content

Batch script to check process status and start if needed in Windows

License

Notifications You must be signed in to change notification settings

vvkjndl/apprestart_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script when started will run continuously in loop mode. Script checks for a process as defined in script configuration and takes actions based on the process status.

I wrote this script when I was given a task to monitor a process continuously to ensure it was running. This script will start the process if it's not running; kill it and restarts it if it's hung.

If you also have such kind of tasks in your job profile just download my script and configure it as per your needs

Script configuration:

Script configuration
appname: put a fancy name of your app here
exename: put name of the executable here
exepath: put path of the executable here
timeout: after how many seconds should the script check for process status

Script in action

Script in action

Notes:

This script is not suitable if your application runs in multi-process mode.

About

Batch script to check process status and start if needed in Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published