diff --git a/Python/etc/monit/services b/Python/etc/monit/services index 7761167..ee6a237 100644 --- a/Python/etc/monit/services +++ b/Python/etc/monit/services @@ -93,7 +93,6 @@ service('intranet2-service', name="intranet2", start_cmd = "/usr/sbin/service intranet2 start", stop_cmd = "/usr/sbin/service intranet2 stop", - pidp='/run/gunicorn/intranet2.pid', ) if has('gunicorn'): diff --git a/Python/etc/systemd/system/intranet2.service b/Python/etc/systemd/system/intranet2.service index 3fa040e..1a941a7 100644 --- a/Python/etc/systemd/system/intranet2.service +++ b/Python/etc/systemd/system/intranet2.service @@ -26,7 +26,7 @@ User=root Group=root PIDFile=/run/gunicorn/intranet2.pid WorkingDirectory=/usr/local/django/intranet/ -ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/gunicorn/intranet2.pid --name www-data --user www-data --group www-data --daemon --log-file /var/log/gunicorn/intranet2.log --log-level=info --bind=unix:///tmp/gunicorn-intranet.sock --workers=1 +ExecStart=/usr/bin/gunicorn wsgi:application --pid=/run/intranet2.pid --name www-data --user www-data --group www-data --daemon --log-file /var/log/gunicorn/intranet2.log --log-level=info --bind=unix:///tmp/gunicorn-intranet.sock --workers=1 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID Restart=on-failure