[Pythonmac-SIG] @reboot

2005-05-27 Thread Mario Ruggier
Hi,

[ apologies about this not really being directly related to python 
mac... ]

I am trying ro use an @reboot cron job to start an svn server (used for 
python development ;) with each
restart (of a Panther G5 powermac). I have edited the file 
/etc/crontab, adding the line:

@reboot svnserve -d -r /var/svn

but, after restart, there is no svn server daemon running:

$ ps -aux | grep svn
x449   0.0  0.018172336 std  S+   11:03AM   0:00.01 
grep svn
$

Cannot tell where the problem is... The system.log contains the 
following potentially relevant lines:
May 27 10:47:15 localhost SystemStarter: Initializing network
May 27 10:47:15 localhost cron[176]: (*system*) PARSE (bad username)

Any ideas?

Thanks, mario

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] @reboot

2005-05-27 Thread Jim Allman
On May 27, 2005, at 5:11 AM, Mario Ruggier wrote:
 Cannot tell where the problem is... The system.log contains the
 following potentially relevant lines:
 May 27 10:47:15 localhost SystemStarter: Initializing network
 May 27 10:47:15 localhost cron[176]: (*system*) PARSE (bad username)

 Any ideas?

Mario,

I believe that cron runs as a different effective user (root?), even 
for tasks in your personal crontab. Also, it doesn't have quite the 
same environment vars that you'd normally have in the shell. I've had 
trouble calling Growl (OS X notification) popups from cron for this 
reason.

You might try writing an executable shell script to launch svn, then 
putting it in the /Library/StartupItems. Yeah, it looks like someone's 
already doing this:
http://svn.haxx.se/users/archive-2004-05/1140.shtml

Good luck!

   =jimA=

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 
. . . . . . . . . . . . . . .
Jim Allman
Interrobang Digital Media
http://www.ibang.com/
(919) 649-5760

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig