Fix malformed systemd service file.
In particular, the ExecStart instruction is just wrong at the moment. Trying `python3 -um whoogle-search` throws an error because `whoogle-search` is not a module. `--host 0.0.0.0 --port 5000` is unnecesary given the defaults. I've changed it to `--host 127.0.0.1 --port 5000` because that seems more meaningful.
This commit is contained in:
parent
3d8da1db58
commit
987ab5feca
|
@ -179,7 +179,7 @@ pip install -r requirements.txt
|
||||||
See the [available environment variables](#environment-variables) for additional configuration.
|
See the [available environment variables](#environment-variables) for additional configuration.
|
||||||
|
|
||||||
#### systemd Configuration
|
#### systemd Configuration
|
||||||
After building the virtual environment, you can add the following to `/lib/systemd/system/whoogle.service` to set up a Whoogle Search systemd service:
|
After building the virtual environment, you can add something like the following to `/lib/systemd/system/whoogle.service` to set up a Whoogle Search systemd service:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[Unit]
|
[Unit]
|
||||||
|
@ -208,7 +208,11 @@ Description=Whoogle
|
||||||
Type=simple
|
Type=simple
|
||||||
User=<username>
|
User=<username>
|
||||||
WorkingDirectory=<whoogle_directory>
|
WorkingDirectory=<whoogle_directory>
|
||||||
ExecStart=<whoogle_directory>/venv/bin/python3 -um app --host 0.0.0.0 --port 5000
|
# <whoogle_directory> is the directory from which the
|
||||||
|
# systemd service will be launched. It doesn't really matter
|
||||||
|
ExecStart=<python_install_dir>/python3 <whoogle_install_dir>/whoogle-search --host 127.0.0.1 --port 5000
|
||||||
|
# For example:
|
||||||
|
# /usr/bin/python3 /home/my_username/.local/bin/whoogle-search --host 127.0.0.1 --port 5000
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user