Antoniop wrote: > It's because you have > "su - $USER -c" > in your script, and not sudo instead of su, as in frankd script. > su prompts for a password, that's certainly why it doesn't work in the > crontab, there's no password entered at run time. > At boot, because the user that runs mmserver script is root, the su > command doesn't ask for a password to run the job as pi (I didn't know > it, I just tried it). > sudo works differently. It doesn't ask for a password if there is a rule > in file /etc/sudoers that says so. /etc/sudoers is the rules file that > says how to deal with sudo commands, according to users and commands. I > didn't changed anything to this file. > I have the original script (with su) and I had the same problems. > So I changed the crontab with this : > > Code: -------------------- > > 0 1 * * * sudo service mmserver stop > 5 1 * * * sudo service mmserver start -------------------- > > > > > It's strange, it doesn't work for me, I have the message "Sorry, user > pi is not allowed to execute .."
Thank you for your comments. Somehow it works not exactly the same here, and I do not understand why. But since it is working with my modifications, I let it rest now. ============================================== Squeezebox 3 // Squeezebox Touch // Squeezebox Boom// Squeezebox Radio// Raspberry pi ------------------------------------------------------------------------ stroom's Profile: http://forums.slimdevices.com/member.php?userid=9612 View this thread: http://forums.slimdevices.com/showthread.php?t=106958 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
