Hi Alex, by default on Debian/Ubuntu, Liquidsoap runs as the 'pypo' user, but the other processes run as root. I don't recall the reasons for this, but I wonder if the media monitor really needs write access across the whole file system in order to delete items from watched folders.
If you can find a way to use a less privileged user account for all services, please feed back your findings to the Airtime team so that the default setup can benefit.
I will try to play with it and will update with what I get.
BTW, as far as I am not quite familiar with main functionality of airtime-media-monitor, could you please just bullet-point those? So I can consider it in my "puzzle-play"
So far I see that zendphp.log has root:root credentials with 644 mode. So we would need to change it when created if so.
Post edited by Alex Gainulin at 2014-04-22 11:39:43
www.actionsch.com - Bringing talents in life! + Action Radio School +
it is stuck with this step... what it is doing there? I open that URL in browser and it shown in empty screen just with "[]"
no errors in Apache, nothing...
Updates: I guess I am wrong with my statement (sorry for the confusion) - in original init.d the start media-monitor was used an argument "--background" which interprets as the fork to allow process stays ran.... but my implementation in RHEL do not has it... will play around.
Could someone confirm that below processes are correct and represented the media-monitor status as up and running?:
Also, airtime-check-system: how it checks MEDIA_MONITOR_PROCESS_ID?
I see in the airtime-check-system.php it uses: isset() and reading array $data->services->media_monitor->process_id. In my case it shows FAILED, however it is running... I need to either check why it failed or rewrite to look at /proc/$PID
Any idea what php file to check?
Post edited by Alex Gainulin at 2014-04-23 23:42:50
www.actionsch.com - Bringing talents in life! + Action Radio School +
Ok I think I got the answer. It uses service OS level command, so b/c of airtime-media-monitor service is actually has different name related to PID, it will not get designed case.
For my env I will implement the way: read /proc/$pid directory and pass status into airtime-check-system.php.
I see that media-monitor actually working/managing the media - which is really great success :)
Just play-engine still on my way to adapt ... fingers-crossed.
Post edited by Alex Gainulin at 2014-04-25 11:56:57
www.actionsch.com - Bringing talents in life! + Action Radio School +