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

Rubén Pérez Vázquez commented on MH-6047:
-----------------------------------------

Adam,

I investigated a little bit further,and this is what I came with:

Init will set up a certain PATH variable (at least theoretically), which may be 
different from the one your normal user has when you write the init scripts. 
Therefore you must be special careful with init scripts and the environment 
they are run in.

Our init scripts assume matterhorn has been correctly installed and therefore 
some binaries are expected to be in certain locations. If there is room for 
customize these locations, that should somehow be reflected in the init 
scripts, using explicit variables that can be adjusted to each specific 
configuration. Even so, I believe that all the 3rd party tools required by 
matterhorn are installed in locations that are usually included in the default 
$PATH. If one isn't, then this must be reflected in the init script, either by 
using an absolute path with that specific tool, or by appending the directory 
where it's located to the PATH. 

If this is such a big issue, then a PATH variable can be explicitly defined at 
the beginning of the scripts, including all the necessary directories, 
separated by colons (:). We don't even need to overwrite any previously defined 
PATH, by doing:
PATH=$PATH:/usr/bin:whatever

If, after explicitly including the locations in the PATH, those issues are 
still present, they are definitely caused by something else.

Sorry for the confusion with the init behaviour. I hope it's a little big 
clearer now

> 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
>             Fix For: 1.0.x (branch), 1.1 
>
>


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