Skip to content

Instantly share code, notes, and snippets.

@dhollinger
Created January 14, 2019 18:16
Show Gist options
  • Save dhollinger/6d06335afa729f2a59692cb87a9cca43 to your computer and use it in GitHub Desktop.
Save dhollinger/6d06335afa729f2a59692cb87a9cca43 to your computer and use it in GitHub Desktop.
[Unit]
Description=R10K Webhook Service
After=syslog.target network.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/webhook
RuntimeDirectory=puppet_webhook
User=root
TimeoutStartSec=90
TimeoutStopSec=30
RestartSec=10000
ExecStart=/opt/puppetlabs/puppet/bin/puppet_webhook -c /etc/puppet_webhook/server.yml
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
StandardOutput=syslog
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment