The service is started via systemd activation sockets. The service serves http POST requests, the same json as before is expected as the body of the request, and the same json as before is sent as the response of the request.
13 lines
356 B
Desktop File
13 lines
356 B
Desktop File
[Unit]
|
|
Description=OSbuild dnf-json service
|
|
Requires=osbuild-dnf-json.socket
|
|
|
|
[Service]
|
|
Type=simple
|
|
PrivateTmp=true
|
|
ExecStart=/usr/libexec/osbuild-composer/dnf-json
|
|
Restart=always
|
|
RestartSec=1s
|
|
CacheDirectory=osbuild-dnf-json
|
|
# systemd >= 240 sets this, but osbuild-worker runs on earlier versions
|
|
Environment="CACHE_DIRECTORY=/var/cache/osbuild-dnf-json"
|