Introduce a mandatory argument `address`, which is interpreted as a path to a unix socket when `-unix` is given or a network address otherwise. Move the default path to the service file. Add a more useful usage message when passing `-help` or no arguments.
16 lines
390 B
Desktop File
16 lines
390 B
Desktop File
[Unit]
|
|
Description=OSBuild Composer Worker (%i)
|
|
Requires=osbuild-composer.socket
|
|
After=multi-user.target osbuild-composer.socket
|
|
|
|
[Service]
|
|
Type=simple
|
|
PrivateTmp=true
|
|
ExecStart=/usr/libexec/osbuild-composer/osbuild-worker -unix /run/osbuild-composer/job.socket
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
CPUSchedulingPolicy=batch
|
|
IOSchedulingClass=idle
|
|
|
|
[Install]
|
|
WantedBy=osbuild-composer.service
|