mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
72ce923fa1
The current systemd unit file uses %I which gives the unescaped argument to the script. This breaks if there are special characters in the proxy name such as '-'. Using %i escapes the name when it's handed to the command line allowing the use of those characters. This change also adds the argument to the template to the unit name so that it's a bit easier to see in systemctl.
13 lines
203 B
Desktop File
13 lines
203 B
Desktop File
[Unit]
|
|
Description=salt-proxy service for %I
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/salt-proxy --proxyid=%i
|
|
Type=simple
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|