[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Auto-create repository?

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-17 13:55:25 CEST

On Wed, Oct 16, 2002 at 07:53:04PM -0300, Gustavo Niemeyer wrote:
> > >IMHO, that's a task for a CGI script. You could do that in about 10
> > >lines of python.
> >
> > I tried doing this (but not with Python) but I couldn't figure out
> > how to restart httpd. In other words, after the repository is
> > created and httpd.conf is updated to serve it, the CGI can not kill
> > and restart httpd to make the new repository visible.
>
> Yes, it can kill it! With a SIGUSR1 signal, of course. :-)
>
> This command will do the job for you:
>
> apachectl graceful

You can't always issue the signal to restart Apache. If the CGI executes
under suexec, for example.

Also, (and I'm not sure if this is the right answer), but you may also need
to be 'root' if your Apache was started as root (then downgraded).

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 13:56:16 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.