Skip to content

Instantly share code, notes, and snippets.

@dhollinger
Last active October 25, 2018 21:57
Show Gist options
  • Save dhollinger/dd94f4ee62580ea34d635deeac624c0c to your computer and use it in GitHub Desktop.
Save dhollinger/dd94f4ee62580ea34d635deeac624c0c 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
PIDFile=/var/run/puppet_webhook.pid
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
root@ubuntu1604-64-1:/# systemctl start puppet_webhook
root@ubuntu1604-64-1:/# systemctl status puppet_webhook
● puppet_webhook.service - R10K Webhook Service
Loaded: loaded (/etc/systemd/system/puppet_webhook.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2018-10-25 21:57:27 UTC; 2s ago
Process: 1338 ExecStart=/opt/puppetlabs/puppet/bin/puppet_webhook -c /etc/puppet_webhook/server.yml (code=exited, status=0/SUCCESS)
Main PID: 1340 (code=exited, status=0/SUCCESS)
CGroup: /docker/c31408f8de7edf4a814dad6106071e22eb551425467f4ef991b6248cbe4c84d9/system.slice/puppet_webhook.service
└─1343 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet_webhook -c /etc/puppet_webhook/server.yml
Oct 25 21:57:26 ubuntu1604-64-1 systemd[1]: Starting R10K Webhook Service...
Oct 25 21:57:27 ubuntu1604-64-1 puppet_webhook[1338]: [2018-10-25 21:57:27] INFO WEBrick 1.4.2
Oct 25 21:57:27 ubuntu1604-64-1 puppet_webhook[1338]: [2018-10-25 21:57:27] INFO ruby 2.4.4 (2018-03-28) [x86_64-linux]
Oct 25 21:57:27 ubuntu1604-64-1 puppet_webhook[1338]: WARNING: If you plan to load any of ActiveSupport's core extensions to Hash, be
Oct 25 21:57:27 ubuntu1604-64-1 puppet_webhook[1338]: sure to do so *before* loading Sinatra::Application or Sinatra::Base. If not,
Oct 25 21:57:27 ubuntu1604-64-1 puppet_webhook[1338]: you may disregard this warning.
Oct 25 21:57:27 ubuntu1604-64-1 systemd[1]: Started R10K Webhook Service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment