LANDesk Inventory Server Service Restart Utility
This utility will check the status of the LANDesk Inventory Server Service and restart the service if it is not running.
When the LANDesk Inventory Server Service stops, inventory scans stop. This is a bad thing.
This utility will check the status of the LANDesk Inventory Server Service and restart the service if it is not running.
Add this utility to the server's Scheduled Tasks and never worry about the LANDesk Inventory Server Service being stopped again.
I currently have this scheduled to run hourly.
The following is the actual flow of the program:
Create log file (inv_restart.log) in the folder the utility is run from.
Check the LANDesk Inventory Server Service status.
Log Status.
If LANDesk Inventory Server Service is not Running
Send Start command
Wait 10 seconds for LANDesk Inventory Server Service to start
Else
Exit
Check the LANDesk Inventory Server Service status again.
Log Status.
If LANDesk Inventory Server Service is not Running
Wait 30 seconds longer for LANDesk Inventory Server Service to start
Check the LANDesk Inventory Server Service status again.
Log Status.
Else
Exit
Get file here: LANDesk Inventory Server Service Restart Utility