Skip to content

Instantly share code, notes, and snippets.

@Dragod
Created April 24, 2022 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dragod/c4c2c054324627b50d8b74cd1631cb4c to your computer and use it in GitHub Desktop.
Save Dragod/c4c2c054324627b50d8b74cd1631cb4c to your computer and use it in GitHub Desktop.
Run searx with a cronjob using a sh script
#!/bin/bash
sudo -H -u searx -i sh -c "cd /usr/local/searx/searx-src; python searx/webapp.py"
@Dragod
Copy link
Author

Dragod commented Apr 24, 2022

then use:

crontab -e then add this line to the file: @reboot sh ~/searx/searx-cron-job/searx-boot.sh
Reboot, and now searx should restart on his own.

@Dragod
Copy link
Author

Dragod commented Apr 24, 2022

@Dragod
Copy link
Author

Dragod commented Apr 24, 2022

Sometimes it fails as it says the port is alreay in use
Can change the port in : nano /etc/searx/settings.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment