... | ... | @@ -53,35 +53,4 @@ python search.py -h |
|
|
## Executing a query ##
|
|
|
```bash
|
|
|
python search.py -q "miley cyrus" -v DEBUG
|
|
|
```
|
|
|
|
|
|
## Running as a daemon ##
|
|
|
|
|
|
The supervisord.conf file is there to serve as a sample configuration file for supervisor. You can use it if you find it sufficient. Just edit it to change the query.
|
|
|
|
|
|
Afterwards you can start the daemon like this (you must be in the same folder as supervisord.conf or your supervisord.conf must be /etc/
|
|
|
|
|
|
```bash
|
|
|
supervisord
|
|
|
```
|
|
|
|
|
|
Open your browser to 127.0.0.1:9001 to see the status of the daemon.
|
|
|
By default the username is manorastroman and the password kingofthedragonmen.
|
|
|
|
|
|
Alternatively you can see the status like this
|
|
|
|
|
|
```bash
|
|
|
supervisorctl status
|
|
|
```
|
|
|
|
|
|
Or see the tail of the logs
|
|
|
|
|
|
```bash
|
|
|
supervisorctl tail search
|
|
|
```
|
|
|
|
|
|
Whenever you feel like shutting it down
|
|
|
|
|
|
```bash
|
|
|
supervisorctl shutdown
|
|
|
``` |
|
|
\ No newline at end of file |