salt/pkg/salt-proxy@.service
Jeremy McDermond 72ce923fa1 salt-proxy: Fix systemd unit file to handle more proxy names
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.
2017-05-17 11:01:48 -07:00

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