Routine Server Tasks
From SEDSWiki
Start/Stop Tomcat server
Sometimes tomcat needs a kick - especially if the Apache or Mysql were restarted. A good way to check if tomcat is running or not is to look at blogs.seds.org
launchctl is the way to do it
/bin/launchctl stop org.macports.tomcat6 /bin/launchctl start org.macports.tomcat6
Upgrade Mac OS X System Software
Apple periodically releases updates to the operating system software. While many of the updates pertain to software not used on SEDS.org (ie, iTunes, Quicktime, etc), an update us prudent to perform when it corresponds to the operating system itself (ie, Mac OS X Server 10.5.X).
You can check the available update with the following command:
seds:/ root# softwareupdate -l Software Update Tool Copyright 2002-2007 Apple Software Update found the following new or updated software: * iLifeSupport902-9.0.3 iLife Support (9.0.3), 2361K [recommended] [restart] * AirPortUtility-5.4.2 AirPort Utility Software Update 2009-002 (5.4.2), 19330K [recommended] * LOM_12-1.2 Xserve LOM Firmware Update (1.2), 527K [recommended] * QuickTime-7.6.2 QuickTime (7.6.2), 61720K [recommended] [restart] * iTunesX-8.2.0 iTunes (8.2.0), 81250K [recommended] * MacOSXServerUpd10.5.7-10.5.7 Mac OS X Server Update (10.5.7), 469707K [recommended] [restart]
Take note of those updates requiring a reboot as indicated by [restart].
It's prudent to perform some file system maintenance before and after updates. "Repairing permissions" makes sure that all of the system file permissions are in order:
seds:/ root# diskutil repairPermissions / Started verify/repair permissions on disk disk1s2 SEDS Server Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- Permissions differ on "Applications/iTunes.app/Contents/CodeResources", should be -rw-rw-r-- , they are lrw-rw-r-- ... [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] Finished verify/repair permissions on disk disk1s2 SEDS Server
Now you're ready to perform the update:
seds:~ root# softwareupdate -i --all Software Update Tool Copyright 2002-2007 Apple Downloading ... Verifying ... waiting ... Installing ... Done ... You have installed one or more updates that requires that you restart your computer. Please restart immediately.
Make sure there are no users working on the system, and then perform the rebooted (preceded by a sync of the file system for good measure)
seds:~ root# sync seds:~ root# shutdown -r now Shutdown NOW!
Be sure to remember the "-r" or the system will just shutdown and NOT reboot!
The system will typically take a few minutes to reboot. Log back in and make sure everything is in order. It's usually good to repair permissions following an update as well:
seds:/ root# diskutil repairPermissions /
Firmware Updates
Some updates (typically firmware updates) require additional steps after running "software update." Typically this involves logging into the console and running an application to perform the update.

