Re: /var/run write permissions (was: New user for new package)
Andres Seco Hernandez <AndresSH@ctv.es> writes:
> > > But then, the file /var/run/daemonname.pid can not be created from
> > > the own daemon. /var/run hasn't write permisions for the user used
> > > in chuid.
> >
> > use the --make-pidfile option to start-stop-daemon.
> I can't use it because the daemon forks, so, the pid used saved with
> make-pidfile is not real.
Perhaps start-stop-daemon ought to create the pid-file before changing
users, and chown it to the right user? Then you could just rewrite it
yourself after forking with the correct PID.
-Miles
Reply to: