On Sun, 5 May 2024 at 22:22, Salvo Tomaselli <tipos...@tiscali.it> wrote:
>
> > In case anybody is aware of packages/programs needing an update to cope
> > with these changes, or any other issue, please let me know and I will
> > file bugs.
>
> in localslackirc@.service
>
> ReadWritePaths=/var/tmp
>
> It uses /var/tmp because it needs a directory with 1777 permissions that is
> permanent, to keep some status.
>
> The user it ends up using is configured by a seting, and is intended to be a
> non-system user (and could be different users for the various instances).
>
> I guess the solution would be to create such a directory when installing, in /
> var/lib/localslackirc instead of using /var/tmp and have the purge script
> remove it.

Services can use StateDirectory= and StateDirectoryMode= which should
provide the same functionality, and is more appropriate for persistent
state. /tmp/ and /var/tmp/ are meant to be scratch areas, rather than
state storage.

Reply via email to