jkranjc created page: daemon authored by Janez's avatar Janez
## Running as a daemon ##
To run this software as a daemon you are encouraged to use supervisor.
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 (log file locations can be setup in supervisord.conf, default is ./temp/)
```bash
supervisorctl tail search
```
Whenever you feel like shutting it down
```bash
supervisorctl shutdown
```
\ No newline at end of file