It sounds so basic :-p
I can't find any docs here: https://github.com/adnanh/webhook/blob/master/docs/Webhook-Parameters.md
On Ubuntu 16 this is what I see:
root@kara1:~# ps -ef | grep webhook
root 25744 21305 0 15:23 pts/0 00:00:00 grep --color=auto webhook
Thanks
root@kara1:~# ps -ef | grep webhook root 25744 21305 0 15:23 pts/0 00:00:00 grep --color=auto webhook
I don't understand your request. You're grep results are returning the grep process itself. The webhook process is not running.
Well, I am asking because it looks like a web server running all the time isn't it ?
When I read:
You can now run webhook using
$ /path/to/webhook -hooks hooks.json -verbose
I expected that if I can run, I can stop as well.
I think I understand what you're asking now.
webhook doesn't natively run itself in the background. If you want webhook to run as a service, you need to use a service management framework relevant to your platform. Here's a sample systemd service file:
[Unit]
Description=Webhook Service
After=network.target
[Service]
User=webhook
Group=webhook
ExecStart=/opt/webhook/webhook -hooks=/opt/webhook/hooks.json -hotreload=false -verbose
WorkingDirectory=/opt/webhook
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
You may also be interested in the community contributions in https://github.com/adnanh/webhook-contrib.
Oh got it now!
I feel this should be part of the README :)
Most helpful comment
Oh got it now!
I feel this should be part of the README :)