Without passing in a cachedir, dnf would create a random one for every invocation. This meant that caches were never reused, nor cleaned up properly. Let systemd create a cache directory for us in /var/cache/ and use that via the environment variable systemd sets for us. Signed-off-by: Tom Gundersen <teg@jklm.no>
17 lines
396 B
Desktop File
17 lines
396 B
Desktop File
[Unit]
|
|
Description=OSBuild Composer
|
|
After=multi-user.target
|
|
Requires=osbuild-composer.socket
|
|
Wants=osbuild-worker@1.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/libexec/osbuild-composer/osbuild-composer
|
|
CacheDirectory=osbuild-composer
|
|
StateDirectory=osbuild-composer
|
|
WorkingDirectory=/usr/libexec/osbuild-composer/
|
|
User=_osbuild-composer
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|