I am setting up a server to host a Django application that has:
uWSGI application launched by ubuntu uWSGI init scriptceleryd launched supervisord
So, I am writing a spread script that will be:
- Pull code from git
- DB Transfer
- Tell
uWSGI to reboot, so it will pick up the new code. - Tell
celeryd to reload, so he will also pick up the new code.
uWSGI has the following configuration function:
touch-reload gracefully reload the uWSGI stack when a file/directory changes.
So, my script is run by an unprivileged user, under which all application processes are launched.
To restart uWSGI , I can just touch ~/.restart_uwsgi .
Is there a way to do the same for celeryd running under supervisord without giving sudo access to an unprivileged user so that he can supervisorctl restart celeryd ?
Prody source share