On Tue, 2006-02-21 at 22:27 +0200, Ilias Lazaridis wrote:
> Ernest Ellingson wrote:
> > Ilias Lazaridis wrote:
> >> V0.93 with tracd on debian with apache.
> >>
> >> when I update the htdigest file (e.g. change of a users password),
> >> trac recognizes the new password only after a restart of tracd.
> >>
> >> My questions:
> >>
> >> a) can I avoid the need of the tracd restart?
>
> so, the restart is necessary?
>
> >> b) if not, how can I automate the tracd restart?
> >>
> >> sudo kill <process-id-of-tracd-daemon>
> >> tracd ...
> >>
> >> I retrieve the <process-id> manually via "ps -U <user>"
> >>
> >> -
> >>
> >> I've not enough unix bash knowledge to provide a possible solution:
> >>
> >> * provide a script which contains the tracd start code
> >> * script should store the returned process id into a file.
> >> * a "restart" retrieves the process-id, kills and launches again.
> >>
> >> ./tracdrun start
> >> ./tracdrun stop
> >> ./tracdrun restart
> >>
> >> .
> >>
> > When starting tracd put the output from the start into a file.
> >
> > tracd -d -p 8000 path/to/your/project > /var/tracd.pid
> >
> > The tracd.pid file will contain the pid at the end of the line.
>
> ok, sounds good.
>
> but how do I use this to make the kill?
The line looks something like this:
tracd daemon running with pid: 14730
A simple way to extract the PID would be:
% kill `awk '{print $6;}' </var/tracd.pid`
--
Gary Thomas <[EMAIL PROTECTED]>
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac