Skip to content
Snippets Groups Projects
Commit 8dd72a87 authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Added API server restart command

parent 2735a037
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
12. [ECCS2 API Server (UWSGI)](#eccs2-api-server-uwsgi) 12. [ECCS2 API Server (UWSGI)](#eccs2-api-server-uwsgi)
* [Install](#install-1) * [Install](#install-1)
* [Configure](#configure-1) * [Configure](#configure-1)
* [Utility](#utility)
13. [ECCS2 API JSON](#eccs2-api-json) 13. [ECCS2 API JSON](#eccs2-api-json)
14. [Utility for web interface](#utility-for-web-interface) 14. [Utility for web interface](#utility-for-web-interface)
15. [Utility for developers](#utility-for-developers) 15. [Utility for developers](#utility-for-developers)
...@@ -192,7 +193,7 @@ Note: Pay attetion on the chromedriver version: ...@@ -192,7 +193,7 @@ Note: Pay attetion on the chromedriver version:
```bash ```bash
SHELL=/bin/bash SHELL=/bin/bash
0 4 * * * /bin/bash $HOME/eccs2/cleanAndRunEccs2.sh > $HOME/eccs2/logs/eccs2cron.log 2>&1 0 4 * * * /bin/bash $HOME/eccs2/cleanAndRunEccs2.sh > $HOME/eccs2/logs/eccs2cron.log 2>&1
``` ```
## Execute ## Execute
...@@ -247,6 +248,12 @@ Note: Pay attetion on the chromedriver version: ...@@ -247,6 +248,12 @@ Note: Pay attetion on the chromedriver version:
* `sudo chgrp apache $HOME ; sudo apache g+rx $HOME` (Apache needs permission to access the $HOME dir) * `sudo chgrp apache $HOME ; sudo apache g+rx $HOME` (Apache needs permission to access the $HOME dir)
* `sudo systemctl restart httpd.service` * `sudo systemctl restart httpd.service`
## Utility
To perform a restart after an API change use the following command:
* `touch $HOME/eccs2/eccs2.ini`
# ECCS2 API JSON # ECCS2 API JSON
* `/api/eccsresults` (Return the results of the last check ready for ECCS web interface) * `/api/eccsresults` (Return the results of the last check ready for ECCS web interface)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment