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[tm] way for this? > > root:~% start-stop-daemon -S -m -c mirror:nogroup -u mirror -p > /var/run/debian-mirror.pid -x /usr/sbin/debian-mirror > start-stop-daemon: Unable to open pidfile `/var/run/debian-mirror.pid' for > writing: Permission denied
Touch the file first, then chown it, before calling s-s-d. ----BEGIN GEEK CODE BLOCK---- Version: 3.12 GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS-- PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z? -----END GEEK CODE BLOCK----- ----BEGIN PGP INFO---- Adam Heath <[EMAIL PROTECTED]> Finger Print | KeyID 67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG -----END PGP INFO-----