Run searx with a cronjob using a sh script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo -H -u searx -i sh -c "cd /usr/local/searx/searx-src; python searx/webapp.py" | |
follow installation before doing the above:
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
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.