Remove RuntimeDirectory

This directory is currently only used for unix-domain sockets but they are created by systemd with the socket unit and therefore this line is redundant and maybe even causes problems.

We want the sockets to live even when the service is down (either because of error or intentional suspension) and it seems that setting the RuntimeDirectory to the directories that contain the sockets makes systemd remove both directories and unlink the sockets when the service fails and that is exactly what we don't want.
This commit is contained in:
msehnout 2019-10-04 09:52:55 +02:00 committed by Tom Gundersen
parent 5040e6b427
commit 7cf8c2e875

View file

@ -6,7 +6,6 @@ Requires=osbuild-composer.socket
[Service]
Type=simple
ExecStart=/usr/lib/osbuild-composer/osbuild-composer
RuntimeDirectory=osbuild-composer weldr
StateDirectory=osbuild-composer
WorkingDirectory=/usr/lib/osbuild-composer/
User=_osbuild-composer