1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
[Unit]
Description=Sauce Connect worker service on port %i
PartOf=sc.service
ReloadPropagatedFrom=sc.service
[Service]
Type=simple
User=nobody
Group=nobody
WorkingDirectory=/tmp
LimitNOFILE=8192
Restart=always
# Set those to match your Saucelabs credentials
Environment=SAUCE_USERNAME=username
Environment=SAUCE_ACCESS_KEY=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
ExecStart = /usr/local/bin/sc \
--logfile - \
--pidfile "/tmp/sauceconnect_%i.pid" \
--se-port "%i" \
--no-remove-colliding-tunnels
# Not needed with systemd
ExecStartPost = /bin/rm -f /tmp/sauceconnect_%i.pid
[Install]
WantedBy=multi-user.target
|