Automatically restart macOS

To schedule Web Help Desk for a nightly restart:

  1. Login to your OS as root or admin.
  2. Copy the following file to your /Library/LaunchDaemons folder:

    /Library/WebHelpDesk/bin/ com.macsdesign.RestartWebHelpDesk.plist

  3. Execute the following command:

    launchctl load com.macsdesign.RestartWebHelpDesk.plist

  4. Verify that the plist was loaded successfully by executing the following command:

    launchctl list

  5. To unload the LaunchDaemon, 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.