Skip to content

Instantly share code, notes, and snippets.

@saidsef
Last active August 9, 2018 22:21
Show Gist options
  • Select an option

  • Save saidsef/355c8d13984ed34a62b50e510b4f9ab2 to your computer and use it in GitHub Desktop.

Select an option

Save saidsef/355c8d13984ed34a62b50e510b4f9ab2 to your computer and use it in GitHub Desktop.
Swarm Service Manager
[Unit]
# Location: /usr/lib/systemd/system : systemctl enable swarm
Description=swarm service manager
Documentation=https://plugins.jenkins.io/swarm
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
User=root
ExecStart=/usr/bin/env bash /mnt/swarm/start.sh
StandardOutput=journal
StandardError=inherit
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment