How to stop the clock server

I know how to start a sentry.

But when I change sentry.conf.py , how can I make it work?

I run an hour help and cannot find a watchdog or restart Commond. Is there a way to restart the clock server?

+8
sentry
source share
3 answers

I myself ran into this problem. I used the supervisor to start my watch server, and for some reason it did not kill the watch when I stopped the supervisor. To fix this, I ran sudo netstat -tulpn | grep 9000 sudo netstat -tulpn | grep 9000 to find the process id that is still running. For me it was a machine gun. Kill this process, then start the server, and your new settings will take effect.

+1
source share

I use systemctl to manage the clock.

First, create an executable file. run_worker

 #!/bin/bash source ~/.sentry/bin/activate SENTRY_CONF=~/sentry sentry run worker>/var/log/sentry_worker.log 2>&1 

Then create service files. as:

 [Service] ExecStart={YourPath}/sentry/run_worker Restart=always StartLimitInterval=0 [Install] WantedBy=default.target 

Create sentry_web.service sentry_cron.service similarly and use

 systemctl --user restart sentry_* 

to restart.

0
source share

If you use your employees with a supervisor, just run the commands to restart all workers:

 supervisorctl restart all 

Or if you want to restart one worker, enter:

 supervisorctl status 

To get a list of employees and use:

 restart worker_name 

It will restart the clock process and enable your new configurations.

-one
source share

All Articles