Pretty sure it needs to be called MH.private.ini.

On 2011-02-24 4:25 PM, "Ryan Davies" <ryan@professional.geek.nz> wrote:
> Hi Jim
>
> Where are you defining your env variable?
>
> and what user is mh running as?
>
> For reference, here is my setup. Running on Ubuntu 10.10 Server
> Misterhouse lives in /opt/misterhouse
> My personal overridden directories are in my home dir under a subdir:
> /home/ryan/mh
>
> Im using upstart for my init script.
>
> Here is my upstart script: /etc/init/mh.conf
> description "Misterhouse Server"
> start on filesystem
> stop on runlevel [!2345]
> respawn
> umask 022
> pre-start script
> chown -R ryan:ryan /home/ryan
> end script
> exec su ryan -c "/home/ryan/mh/mh"
>
> my init script in my mh dir: /home/ryan/mh/mh
> #!/bin/bash
> cd /opt/misterhouse/bin
> /usr/bin/perl mh
>
> in my /etc/environment file:
> PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/misterhouse/bin"
> mh_parms="/home/ryan/mh/code/mh.private.ini"
>
>
>
> I put it in this file so that no matter what user i switch to, the
> environment variable is always there.
>
> Common problem i found using the init.d scripts was getting MH to start as
> me, with the environment variables, and with upstart, if MH dies, it is
> restarted automatically (respawn)
>
> Hope this helps your issue.
>
> hoodcanaljim@usa.com wrote:
>
>>
>> I am working on a fresh setup of misterhouse-2105.tar.gz on centos5.5
>> and want to do some testing with it. I am using mh.mine.ini as my
>> mh.private.ini file.
>>
>> directory structure is:
>> /usr/local/mh/
>> bin
>> code
>> data
>> docs
>> lib
>> mine <-- my directory for mh.mine.ini
>> sounds
>> web
>>
>> startup script in /etc/init.d/mhd
>>
>> environment variable:
>> mh_parms=/usr/local/mh/mine/mh.mine.ini
>>
>> checked with the env command.
>>
>> Misterhouse starts on system reboot or by /etc/init.d/mhd restart fine.
>> But the mh.mine.ini file is not being read. And I can find no reason why.
>>
>> Any help appreciated
>> Jim
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> ________________________________________________________
> To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365
>