worker: don't hard code path to unix domain socket
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.
This commit is contained in:
parent
b5432e78b9
commit
f8982f4a1a
3 changed files with 20 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ After=multi-user.target
|
|||
[Service]
|
||||
Type=simple
|
||||
PrivateTmp=true
|
||||
ExecStart=/usr/libexec/osbuild-composer/osbuild-worker --remote %i
|
||||
ExecStart=/usr/libexec/osbuild-composer/osbuild-worker %i
|
||||
CacheDirectory=osbuild-composer
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue