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.
Za ma
source share