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.
19 lines
No EOL
484 B
Desktop File
19 lines
No EOL
484 B
Desktop File
[Unit]
|
|
Description=OSBuild Composer Remote Worker (%i)
|
|
Requires=osbuild-dnf-json.socket
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
PrivateTmp=true
|
|
ExecStart=/usr/libexec/osbuild-composer/osbuild-worker %i
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
CPUSchedulingPolicy=batch
|
|
IOSchedulingClass=idle
|
|
CacheDirectory=osbuild-worker
|
|
# systemd >= 240 sets this, but osbuild-worker runs on earlier versions
|
|
Environment="CACHE_DIRECTORY=/var/cache/osbuild-worker"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |