Skip to content

A macOS script to encourage users to restart their workstations

License

Notifications You must be signed in to change notification settings

SecondSonConsulting/Renew

Repository files navigation

Renew

See our wiki for installation details and information on how the tool works.

Overview

Renew is a shell script for macOS meant to be run on regular intervals to encourage users to restart their computers on a regular basis. Notifications can become progressively more aggressive if the user chooses to defer their restart beyond the configured threshold.

Renew runs as the logged in user and will never restart a computer without a user's consent.

Why?

Regularly restarting your workstation is an important part of keeping it running healthy and secure. Application updates, MDM commands, and security software will run more efficiently when the computer is allowed to restart on a regular basis. We have found that 10-14 day restarts are ideal to keeping things working as expected.

Dependencies

Screenshots

Notification Mode Default User Experience

Renew Notification Example Image Renew Notification Example Image

Normal Mode Default User Experience

Renew Normal Example Image Renew Normal Example Image

Aggressive Mode Default User Experience

Renew Aggressive Example Image Renew Aggressive Example Image

Custom Fields Design Example Image

SwiftDialog allows a high degree of customization, and Renew allows you to continue to easily take advantage of that. This is an example of how you can customize the user experience to suit your branding and taste.

This example uses a banner image tailored to the window size, and the following OptionalArgument in the configuration file.

<key>AdditionalDialogOptions</key>

<string>--width 300 --height 350 --messagefont size=15 --position topright --ontop --messagealignment centre</string>

Renew Customized Example Image Renew Customized Example Image

Thank you!

This project is made possible by the awesome folks on the MacAdmins slack for their support and community projects.

A huge thanks to Bart Reardon for creating and maintaining Swift Dialog. Without this tool, Renew would not have been possible.

It should be obvious to anyone familiar with Nudge that some of the basic concepts of Renew are influenced by it. Thank you Erik Gomez for providing your hard work to the community for free.

A resounding shoutout to all of the members of the MacAdmins community for their guidance and education on all things macOS, especially the gurus in the #scripting channel for their endless patience and assistance as we worked to increase our scripting knowledge. @pico @scriptingosx @adamcodega @Brock Walters @Josh Rickets @dan-snelson and many more I'm probably forgetting. Thank you for your patient guidance on all things macOS.