[macosx-unix] amanda backup

Jan Schaumann jschauma at netmeister.org
Wed Mar 15 18:20:15 EST 2006


Isaac Levy <ike at lesmuug.org> wrote:
 
> 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.

Well, that's because the way I use it is actually the default.  Some
other scripts do use it to allow the service to run continually (such as
cron or postfix) and others use it set to the default or leave it out to
only start on demand (ssh, for example).  But I did try it with and
without having this key, which made no difference.

> --
> 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."

Right, which is why I added this to the amanda.plist.

I'm quite sure that the plist itself, as is, is correct.  It does work
just fine when I manually 'launchctl load' it, after all.  It just
doesn't start automatically, *even though* it's actually loaded
automatically.  That is, after a fresh reboot, 'launchctl list' will
show me that org.amanda.amanda is a service that is running, only it
will not actually be running and nothing is listening on port 10080.

> 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...

That's exactly how I did come up with this plist. :-)

> The man page, and options, are dizzying IMHO...

Well, if they're accurate, then I think they're fine.  But then, I've
noticed that on OS X manual pages are not always entirely accurate.  Or
complete.  Or necessarily existant.

-Jan

-- 
'I have reached an age where my main purpose is not to receive
messages.' --- Umberto Eco, quoted in the New Yorker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://berdom.net/pipermail/macosx-unix/attachments/20060315/3794e1af/attachment.bin


More information about the macosx-unix mailing list