[ 
http://opencast.jira.com/browse/MH-6047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23128#action_23128
 ] 

Adam Hochman commented on MH-6047:
----------------------------------

here is Ruben's take on the initd issues:
I strongly discourage the use of sudo for interoperability issues. Even though 
"sudo" in Ubuntu is widespread and popular and easy to use, the original way to 
go in Unix is: you want to run a script with privileged, then you run it as 
root. And this NEVER fails.

For instance, the capture agent install scripts require to be run as root, 
otherwise fail. I check that at the beginning of the script and then I can be 
sure that I have got permissions for everything I want to do in the script. And 
the user can still run the script using "sudo" from the outside, but that isn't 
something I have to worry about when writing the code.

Coming back to this particular case, I wonder if that issues with not finding 
the right path appear when you run the script manually (/etc/init.d/matterhorn 
start), or only when you reboot the machine and the script is exec'd by the 
init system. If it's the second case, it's not guaranteed, afaik, that the PATH 
variable (or any other 'classic' environment variables, such as HOME) are 
defined, because init starts the scripts in a 'special' environment, different 
from the one you get when you log as root or a normal user (well, technically 
it's the root user, but the environment is more limited than the one you get 
using a normal login). Therefore, the init scripts should always use absolute 
paths and not relying on any environment variable being defined. That being 
said, and just in case, I'd check that the PATH variable for the root user is 
well defined, but it still does not guarantee this is going to be available in 
boot time.

If that error shows up also when the init.d script is manually run, I don't 
know what can be the problem. RĂ¼diger, please ping me if you need help on this 
--four eyes see better than you, and two heads think better than one.

> All-in-one server: version check for mediainfo failed
> -----------------------------------------------------
>
>                 Key: MH-6047
>                 URL: http://opencast.jira.com/browse/MH-6047
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Architecture & Services
>    Affects Versions: 1.1 
>            Reporter: Ruediger Rolf
>            Assignee: Ruediger Rolf
>            Priority: Critical
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opencast.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
[email protected]
_______________________________________________

Reply via email to