Webhook: How do I stop or remove this webhook?

Created on 26 Aug 2019  路  4Comments  路  Source: adnanh/webhook

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

Most helpful comment

Oh got it now!

I feel this should be part of the README :)

All 4 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

foosinn picture foosinn  路  5Comments

alexw22 picture alexw22  路  3Comments

macau23 picture macau23  路  6Comments

simplenotezy picture simplenotezy  路  4Comments

gedw99 picture gedw99  路  3Comments