Antoniop wrote: 
> It's sets up MUSICHOME variable and then you can have this script to run
> at boot, with correct user, that's all.
> I don't see why it couldn't work. You can also run each command of the
> script one by one in a console to see where is the problem.

Actually, MusicMagicServer runs after reboot.
But if I copy the following crontab entries in crontab with crontab -e
(with change of the time for testing) the MusicMagicServer does not stop
or start


0 4 * * * /home/pi/MusicIP/MusicMagicMixer/mmserver stop
1 4 * * * /home/pi/MusicIP/MusicMagicMixer/mmserver start

If I run the command  "/home/pi/MusicIP/MusicMagicMixer/mmserver stop"
directly in the commandline, it prompts for su password 
If I replace  "/home/pi/MusicIP/MusicMagicMixer/mmserver stop" by
"/home/pi/MusicIP/MusicMagicMixer/MusicMagicServer stop", then it works
both in commandline and in the cronjob.
If I run "sudo -u pi /home/pi/MusicIP/MusicMagicMixer/MusicMagicServer
stop & > /dev/null 2>&1",  in the commandline it works as well, without
prompting for a password. 

So everything is working for me, except that the cronjob doesn't work
with the mmserver commands as indicated above.



==============================================
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

Reply via email to