[Box Backup] Starting bbackupd programmatically on Mac OS X
patrick machielse
boxbackup@fluffy.co.uk
Wed, 19 Apr 2006 19:07:23 +0200
I'm trying to start and stop bbackupd from my Mac OS X program. I use
the AuthorizationExecuteWithPrivileges() function to start the daemon
with admin privileges. Starting bbackupd works fine, but when I then
try to quit bbackupd (again using
AuthorizationExecuteWithPrivileges), bbackupquery responds with:
2006-04-19 18:39:16.852 BackToDate[487] Server rejected the
connection. Are you running bbackupctl as the same user as the daemon?
The answer to that question is yes, as far as I can see. [b.t.w. the
use of the word 'Server' is a bit confusing, since I presume the
daemon/client is meant]. When I read the .pid file and use /bin/kill
to stop bbackupd I don't get any complaints, and bbackupd exits.
I am able to start and stop bbackupd from the command line using
'sudo', either directly or through a StartupItem I created.
Does anyone know what's happening here?
patrick