RobinMeis / Siri-API

Siri-API is a tool which opens Apples Siri for your own wishes WITHOUT the requirement of a Jailbreak. You can predefine keywords which execute your own python code when they are found in a request.
use Python 3ws of Apples Siri. It should woww.blog.smartnoob.de
87 stars 23 forks source link

Squid dosent start on startup #11

Closed hans-peter123 closed 10 years ago

hans-peter123 commented 10 years ago

Hello, my server doesn't start on startup completely

I have 2 commands in crontab -e: 1: @reboot /usr/local/squid/sbin/squid 2: @reboot /home/pi/Siri-API/start.sh &

But only the server starts. Why does squid doesn't start? When I type the command manually all works fine!

Thank You for help

RobinMeis commented 10 years ago

I think you were logged in with user pi when you ran crontab -e. Squid can't be started from user pi. You should start it with user squid (if you compiled with default user squid) or (dangerous) as root.

You forgot also the & behind the crontab line which starts squid.

To edit crontab of squid run: Sudo su Su squid Crontab -e

To edit crontab of root run: Sudo crontab -e

hans-peter123 commented 10 years ago

This doesn't worked for me. I try: sudo nano /etc/rc.local and type at the end:

/usr/local/squid/sbin/squid & exit 0

This worked for me. Thanks