From 7aa86e730943ee7a25e3535e814999702d6e5bbe Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Sun, 19 Dec 2021 11:50:52 -0700 Subject: [PATCH] Add systemd instructions for running whoogle from repo --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1904b69..63f5c37 100644 --- a/README.md +++ b/README.md @@ -207,12 +207,14 @@ Description=Whoogle #Environment=WHOOGLE_DOTENV=1 Type=simple User= -WorkingDirectory= -# is the directory from which the -# systemd service will be launched. It doesn't really matter +# If installed as a package, add: ExecStart=/python3 /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 +# ExecStart=/usr/bin/python3 /home/my_username/.local/bin/whoogle-search --host 127.0.0.1 --port 5000 +# Otherwise if running the app from source, add: +ExecStart=/run +# For example: +# ExecStart=/var/www/whoogle-search/run ExecReload=/bin/kill -HUP $MAINPID Restart=always RestartSec=3