Re: -o remount,ro /

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 13 May 2016 19:50:52 +0200

On 13/05/2016 18:41, Eric Vidal wrote:
> i have made it. It works yes, but if i want a service like
> syslogd-linux (or any other service which need to read/write on /)
> started at the end of the init script by s6-svcscan with the /
> mounted on ro, the syslogd service fail, because it can write the log
> on e.g. /var/log/. So the service must wait until the / is mounted
> rw.
>
> Anyway thank for your time and explanation. i will try to find a
> solution

  Have a separate filesystem for /var, so you can keep / read-only.
  Or, define your loggers as s6-rc services instead of initial services,
and make them depend on a "remount / read-write" oneshot.

-- 
  Laurent
Received on Fri May 13 2016 - 17:50:52 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC