Automatically restart macOS
To schedule Web Help Desk for a nightly restart:
- Login to your OS as root or admin.
-
Copy the following file to your
/Library/LaunchDaemons
folder:/Library/WebHelpDesk/bin/com.macsdesign.RestartWebHelpDesk.plist
-
Execute the following command:
launchctl load com.macsdesign.RestartWebHelpDesk.plist
-
Verify that the plist was loaded successfully by executing the following command:
launchctl list
-
To unload the Launch Daemon, execute the following command:
launchctl unload com.macsdesign.RestartWebHelpDesk.plist
The plist file is configured to restart Web Help Desk each night at 1 AM. You can change the schedule by editing the StartCalendarInterval
property in the plist. See your Apple OS X documentation for details.
When you schedule your nightly restart, the following conventions apply:
- The launch daemon works only with the standard Web Help Desk Tomcat deployment. WebObjects Monitor deployments use the Monitor tool to configure automatic restarts.
- When scheduling with the Monitor, make sure to clear Is Graceful to force the instances to restart.