I am starting this thread to continue a discussion from this thread in regards to running ps3mediaserver as a daemon service.
EDIT: Ubuntu 12.04/ps3mediaserver still suffers from the "ps3mediaserver daemon needs to be restarted after boot" bug]
EDIT again: 12.04 does not have this bug when the service is installed from the PPA repos using APT. See My last post, P.3]
I have ubuntu 10.04 server running headless, on which I've installed ps3mediaserver from the script found here (by happy neko). It is not recommended to run ps3mediaserver as a daemon, but in my case I have to, as it's running on a server that will not always be logged into, it's a headless box that's there to do it's jobs without human intervention when need be.
The install script worked fine, even ps3mediaserver as a service works fine, with one catch. It only works right (in my case) if it's restarted AFTER the boot process. Even when it did work at boot, the daemon would crash once accessed by other machines. The only way for it to work right, and work every boot, was to make sure the service is restarted after everything else booted. What specifically it's depending on to start right is still unknown by me. (If you want more details see the first thread here.)
So currently I am using a small "restart service" script that's run by cron at boot. The script sleeps for eight seconds then restarts ps3mediaserver. eight seconds was the shortest tested time that was far enough into/after boot to restart ps3mediaserver with the desired results (i.e. it works right).
Bookmarks