Add systemctl files for celery

This commit is contained in:
Kumi 2019-02-01 16:57:57 +00:00
parent cb9e16371d
commit 4a21dc8ea1

View file

@ -17,7 +17,7 @@ mkdir images
./manage.py collectstatic
./manage.py migrate
sudo chown vpn.vpn . /etc/openvpn/ca -R
sudo cp misc/vpnmanager.service /etc/systemd/system/
sudo cp misc/vpnmanager.service misc/celery.service /etc/systemd/system/
chmod +x misc/cron
sudo cp misc/cron /etc/cron.d/vpnmanager
sudo mkdir -p /etc/openvpn/client-configs/files
@ -27,4 +27,6 @@ sudo chown vpn.vpn /etc/openvpn/client-configs -R
sudo systemctl daemon-reload
sudo systemctl enable vpnmanager
sudo systemctl start vpnmanager
sudo systemctl enable celery
sudo systemctl start celery
echo "This should be working so far. Now point your webserver to uwsgi.sock using its WSGI options. Be sure to include the static files at static/static_root/"