-
-
Save iammart/5620189 to your computer and use it in GitHub Desktop.
Mountain Lion Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Flush mail queue | |
| $ sudo postfix flush | |
| // Delete everything in the mail queue | |
| $ sudo postsuper -d ALL | |
| // See what's in the mail queue | |
| $ sudo postqueue -p | |
| // Stop mail | |
| $ sudo serveradmin stop mail | |
| // Start mail | |
| $ sudo serveradmin start mail | |
| // Restart the Server locally (-r to restart, 'now' or hhmm) | |
| $ shutdown -r now | |
| // Restart the Server remotely with ssh | |
| $ ssh -l root server shutdown -r now | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment