Re: Problem with start-stop-daemon and pidfile

2001-01-04 Thread Matt Zimmerman
On Fri, Jan 05, 2001 at 03:29:30AM +0100, Goswin Brederlow wrote: > > " " == Matt Zimmerman <[EMAIL PROTECTED]> writes: > > > On Wed, Jan 03, 2001 at 02:10:19AM +0100, Goswin Brederlow > > wrote: > >> touch /var/run/debian-mirror.pid chown mirror.nogroup > >> /var/run/debian

Re: Problem with start-stop-daemon and pidfile

2001-01-04 Thread Goswin Brederlow
> " " == Matt Zimmerman <[EMAIL PROTECTED]> writes: > On Wed, Jan 03, 2001 at 02:10:19AM +0100, Goswin Brederlow > wrote: >> touch /var/run/debian-mirror.pid chown mirror.nogroup >> /var/run/debian-mirror.pid >> >> touch /var/log/debian-mirror.log chown mirror.nogrou

Re: Problem with start-stop-daemon and pidfile

2001-01-04 Thread Matt Zimmerman
On Wed, Jan 03, 2001 at 02:10:19AM +0100, Goswin Brederlow wrote: > touch /var/run/debian-mirror.pid > chown mirror.nogroup /var/run/debian-mirror.pid > > touch /var/log/debian-mirror.log > chown mirror.nogroup /var/log/debian-mirror.log Please don't do this. nogroup should not be the group of

Re: Problem with start-stop-daemon and pidfile

2001-01-02 Thread Adam Heath
On 3 Jan 2001, Goswin Brederlow wrote: > set -e > > test -x /usr/sbin/debian-mirror || exit 0 > > touch /var/run/debian-mirror.pid > chown mirror.nogroup /var/run/debian-mirror.pid > > touch /var/log/debian-mirror.log > chown mirror.nogroup /var/log/debian-mirror.log > > start-stop-daemon -S -

Re: Problem with start-stop-daemon and pidfile

2001-01-02 Thread Goswin Brederlow
> " " == Adam Heath <[EMAIL PROTECTED]> writes: > On 3 Jan 2001, Goswin Brederlow wrote: >> Hi, >> >> I want to use start-stop-daemon to start the debian-mirror >> script if its not already running. I don't trust the script, so >> I run it as user mirror:nogroup.

Re: Problem with start-stop-daemon and pidfile

2001-01-02 Thread Adam Heath
On 3 Jan 2001, Goswin Brederlow wrote: > Hi, > > I want to use start-stop-daemon to start the debian-mirror script if > its not already running. I don't trust the script, so I run it as user > mirror:nogroup. > > But then start-stop-daemon can't write a pidfile to /var/run. > > Whats the right[

Problem with start-stop-daemon and pidfile

2001-01-02 Thread Goswin Brederlow
Hi, I want to use start-stop-daemon to start the debian-mirror script if its not already running. I don't trust the script, so I run it as user mirror:nogroup. But then start-stop-daemon can't write a pidfile to /var/run. Whats the right[tm] way for this? root:~% start-stop-daemon -S -m -c mirr