Minecraft wiki entry for Create_a_Mac_OS_X_startup_daemon, associated text: 1 Introduction
2 Word of interest about sudo
3 To do list
4 Creating a _minecraft daemon user and group
4.1 The easy (and incorrect) way
4.2 The hard (and correct) way
4.2.1 Creating the group (GID)
4.2.2 Creating the user (UID)
4.2.3 Creating the user home
4.2.4 Moving the server files
5 Support files
5.1 minecraft.command
5.1.1 Explanation
5.1.2 Termination
5.2 start.sh
5.3 stop.sh
5.3.1 Explanation
5.3.2 stdin redirection
5.3.3 Termination
6 Support files - A Variant
7 Support File - Singular
8 net.minecraft.server.plist
9 Copying and testing files
9.1 Shell scripts
9.2 Launch daemon
10 Automatic Startup/Shutdown
10.1 server_daemon.command
10.1.1 Explanation
10.1.2 Areas for Improvement
11 Backup considerations
11.1 net.minecraft.server.backup.plist
11.2 backup.command
12 Tying it up