[Box Backup] Updated plist for OS X, was Trunk 2461 builds and tests perfectly on OS X 10.5

Achim boxbackup@boxbackup.org
Tue, 24 Mar 2009 00:19:37 +0100


Hello Chris:

One more thing came to my attention: I use an updated plist file in 
/System/Library/LaunchDaemons/org.boxbackup.bbackupd.plist with the 
following changes to the existing one in SVN:

* use of SINGLEPROCESS
This allows launchd to manage it properly, since such processes should 
not fork and daemonise: this is based on Ben Summers' original 
suggestion in [0].

* Set "LowPriorityIO" to "true"
This optional key specifies whether the kernel should consider this 
daemon to be low priority when doing file system I/O.

* Set Nice to "1"
This optional key specifies what nice(3) value should be applied to the 
daemon.

Perhaps this can be combined with the current dynamic PLIST at [1]?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>org.boxbackup.bbackupd</string>
	<key>RunAtLoad</key>
	<true/>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/local/bin/bbackupd</string>
		<string>/usr/local/etc/boxbackup/bbackupd.conf</string>
		<string>SINGLEPROCESS</string>
	</array>
         <key>LowPriorityIO</key>
         <true/>
         <key>Nice</key>
         <integer>1</integer>
</dict>
</plist>


[0] 
<http://lists.warhead.org.uk/pipermail/boxbackup/2006-November/003117.html>
[1] 
<http://www.boxbackup.org/trac/browser/box/trunk/contrib/mac_osx/org.boxbackup.bbackupd.plist.in>