Add systemctl files for celery
This commit is contained in:
parent
cb9e16371d
commit
4a21dc8ea1
1 changed files with 3 additions and 1 deletions
4
setup.sh
4
setup.sh
|
@ -17,7 +17,7 @@ mkdir images
|
||||||
./manage.py collectstatic
|
./manage.py collectstatic
|
||||||
./manage.py migrate
|
./manage.py migrate
|
||||||
sudo chown vpn.vpn . /etc/openvpn/ca -R
|
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
|
chmod +x misc/cron
|
||||||
sudo cp misc/cron /etc/cron.d/vpnmanager
|
sudo cp misc/cron /etc/cron.d/vpnmanager
|
||||||
sudo mkdir -p /etc/openvpn/client-configs/files
|
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 daemon-reload
|
||||||
sudo systemctl enable vpnmanager
|
sudo systemctl enable vpnmanager
|
||||||
sudo systemctl start 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/"
|
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/"
|
||||||
|
|
Loading…
Reference in a new issue