-
-
Couldn't load subscription status.
- Fork 857
Description
I'm using PM2 to automatically start the webhook on my VPS server (UBUNTU 18) and everything works fine. The problem is when I restart the server. When I run the process again, i have an error and I must to execute command "pkill webhook" and "pm2 restart process_name" and then its work again.
0|start | [webhook] 2020/05/24 19:31:09 listen tcp my_ip:9000: bind: address already in use
0|start | [webhook] 2020/05/24 19:31:09 version 2.5.0 starting
0|start | [webhook] 2020/05/24 19:31:09 setting up os signal watcher
0|start | [webhook] 2020/05/24 19:31:09 attempting to load hooks from hooks.json
0|start | [webhook] 2020/05/24 19:31:09 found 1 hook(s) in file
0|start | [webhook] 2020/05/24 19:31:09 loaded: build-webhook
0|start | [webhook] 2020/05/24 19:31:09 serving hooks on http://my_ip:9000/hooks/{id}
Is there any way to kill the previous address after server reboot?
Sorry I'm a layman in the subject :(
Tom.