Skip to content

Instantly share code, notes, and snippets.

@goduncan
Last active June 24, 2017 22:59
Show Gist options
  • Save goduncan/cfbf8e9675b8df106a3235df7b1225f0 to your computer and use it in GitHub Desktop.
Save goduncan/cfbf8e9675b8df106a3235df7b1225f0 to your computer and use it in GitHub Desktop.
Example Sumo Logic systemd start-up script
[Unit]
Description=Sumo Logic Collector
[Service]
Type=forking
ExecStart=/usr/local/bin/startsumo.sh
ExecStop=/opt/SumoCollector/collector stop
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment