[macosx-unix] amanda backup

Isaac Levy ike at lesmuug.org
Wed Mar 15 17:30:46 EST 2006


Oh!  I *think* I found it,

On Mar 15, 2006, at 5:18 PM, Isaac Levy wrote:

<snip>
>
> I'm comparing your file to something I know is working on a machine  
> here:
> /System/Library/LaunchDaemons/ssh.plist
> to see if there's anything that sticks out to me- but they're too  
> different, so I'm still stumped.
>
> --
> So I guess I didn't really help any with this thread, except to go  
> over some of the obvious stuff...

 From the launchd.plist(5) man page:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/ 
man5/launchd.plist.5.html#//apple_ref/doc/man/5/launchd.plist


     "OnDemand <boolean>
      This optional key is used to control whether your job is  
launched based
      on demand or to be kept continuously running. The default is  
true."


Your script uses this OnDemand key, other scripts I found that I know  
work (apple setup) do not use this key.

--
Also, perhaps of use, I noted that smbd.plist uses:

	<key>inetdCompatibility</key>
	<dict>
		<key>Wait</key>
		<false/>
	</dict>

     "inetdCompatibility <dictionary>
      The presence of this key specifies that the daemon expects to  
be run as
      if it were launched from inetd(8).  This flag is incompatible  
with the
      ServiceIPC key."

--
If I were you I'd try hacking the startup script, copying directly  
from some similar daemon- smbd perhaps- and see how it goes from  
there...  The man page, and options, are dizzying IMHO...

Rocket-
.ike



>
>>
>>
>> [1] http://www.pkgsrc.org
>>
>> [2] Below:
>>
>> <?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.amanda.amanda</string>
>> 	<key>OnDemand</key>
>> 	<true/>
>> 	<key>ProgramArguments</key>
>> 	<array>
>> 		<string>/Volumes/pkgsrc/pkg/libexec/amandad</string>
>> 	</array>
>> 	<key>ServiceDescription</key>
>> 	<string>Amanda Backup Daemon</string>
>> 	<key>Sockets</key>
>> 	<dict>
>> 		<key>Listeners</key>
>> 		<dict>
>> 			<key>SockNodeName</key>
>> 			<string>192.168.0.8</string>
>> 			<key>SockServiceName</key>
>> 			<string>amanda</string>
>> 			<key>SockType</key>
>> 			<string>dgram</string>
>> 		</dict>
>> 	</dict>
>> 	<key>UserName</key>
>> 	<string>backup</string>
>> 	<key>GroupName</key>
>> 	<string>operator</string>
>> 	<key>InitGroups</key>
>> 	<true/>
>> 	<key>inetdCompatibility</key>
>> 	<dict>
>> 		<key>Wait</key>
>> 		<true/>
>> 	</dict>
>> </dict>
>> </plist>
>>
>> -- 



More information about the macosx-unix mailing list