1 2 3 4 5 6 7 8 9 10 11 12 13 14
[Unit] Description=serf agent Requires=network-online.target After=network-online.target [Service] User=serf Environment=SERF_AGENT_OPTS="-config-dir=/etc/serf.d" ExecStart=/usr/bin/serf agent $SERF_AGENT_OPTS Restart=on-failure KillSignal=SIGINT [Install] WantedBy=multi-user.target