[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /var/run write permissions (was: New user for new package)



In article <[🔎] 20001209004752.A6888@virgo>,
Andres Seco Hernandez  <AndresSH@ctv.es> wrote:
>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.
>I can do:
>"touch /var/run/daemonname.pid ; chown daemonuser /var/run/daemonname.pid"
>from inside the init.d script that starts the daemon, but that do not look
>good.

You can create a subdirectory in /var/run - the bootup scripts do
clean out /var/run, but directories are left untouched. Just put
the pidfile there

Mike.



Reply to: