My current thinking is a PHP file on my webserver (same machine as mediaserver) which will restart PMS when I click on it from the PS3 browser. Something like this:
- Code: Select all
tim@bigbluelinux:/var/www$ cat pmsrestart.php
<?php
echo "hello";
echo exec ("/etc/init.d/pms-linux restart");
?>
Now I'm having problems with permissions. Normally I run "sudo /etc/init.d/pms-linux restart" but obviously I don't want to give the webserver sudo rights, so I have tried to CHOWN and CHGROUP the PMS files to the webuser, www-data. So far I have changed /var/run/pmslinux.pid but I still get
- Code: Select all
/etc/init.d/pms-linux: line 93: kill: (2258) - Operation not permitted
rm: cannot remove `/var/run/pms-linux.pid': Permission denied
Warning: pms-linux is already running !
This is a lot of work for a dirty hack which shouldn't even be necessary.
Lostar - what did you mean by "he-he... speedup boot" ? I can only see your code slowing down boot time, not speeding it up. Please excuse my ignorance. I wasn't sure where to put your code, so I haven't tried it at all. My startup script doesn't have a block "case '$1' in start)" , only "case '$1' in start|stop|force-stop)" . Is this where your code should go, or in a separate block of its own?
