Re: Help with rc.local scripts

2012-01-06 Thread Jiri B
> >If there's netcat/socat on the host you could tunnel it via ssh. > > > >Maybe something like this (untested) > > > > ssh esxi "netcat -U /path/to/virtual_serial.sock" | \ > > socat STDIO TCP-LISTEN:5500 > > telnet localhost 5500 > > Thanks Jirib. I will give this a try later. just

Re: Help with rc.local scripts

2012-01-06 Thread Ingo Schwarze
Hi Keith, keith wrote on Fri, Jan 06, 2012 at 05:01:08PM +: > I wouldn't know where to start to make a port, > but if there was a couple of easy howtos (I couldn't > see any) then I would give it a go. http://www.openbsd.org/faq/ports/ > When I finally get all this working I'll send my smal

Re: Help with rc.local scripts

2012-01-06 Thread keith
On 06/01/2012 15:53, Jiri B wrote: On Fri, Jan 06, 2012 at 03:27:25PM +, Zi Loff wrote: If all daemons are *always* meant to be started together, what about creating a script that starts the them in sequence -- with some 'sleep' and/or "wait-until-the-previous-daemon-becomes-available" in th

Re: Help with rc.local scripts

2012-01-06 Thread Jiri B
On Fri, Jan 06, 2012 at 03:27:25PM +, Zi Loff wrote: > If all daemons are *always* meant to be started together, what about creating > a script that starts the them in sequence -- with some 'sleep' and/or > "wait-until-the-previous-daemon-becomes-available" in the middle -- and then > calling t

Re: Help with rc.local scripts

2012-01-06 Thread keith
On 06/01/2012 14:51, Jiri B wrote: On Fri, Jan 06, 2012 at 02:06:28PM +, keith wrote: Thank you, that's made a difference. The Graylog2-Server isn't starting but the error has changed... Unfortunately the console scrolls so quickly I can't see what the error is !!! Earlier today I tried to

Re: Help with rc.local scripts

2012-01-06 Thread Zé Loff
If all daemons are *always* meant to be started together, what about creating a script that starts the them in sequence -- with some 'sleep' and/or "wait-until-the-previous-daemon-becomes-available" in the middle -- and then calling that script from rc.local? On Jan 6, 2012, at 3:17 PM, keith wro

Re: Help with rc.local scripts

2012-01-06 Thread keith
On 06/01/2012 14:13, Zi Loff wrote: > > I haven't tried it myself, so I have no idea if it works, but maybe > you can redirect stdout and stderr to a file... Something along the > lines of: > (please note i added the -jar switch as well) > > echo -n ' Graylog2-Server'; java -jar > /usr/local/gr

Re: Help with rc.local scripts

2012-01-06 Thread Jiri B
On Fri, Jan 06, 2012 at 02:06:28PM +, keith wrote: > Thank you, that's made a difference. The Graylog2-Server isn't > starting but the error has changed... Unfortunately the console > scrolls so quickly I can't see what the error is !!! Earlier today I > tried to get a serial console working b

Re: Help with rc.local scripts

2012-01-06 Thread Zé Loff
I haven't tried it myself, so I have no idea if it works, but maybe you can redirect stdout and stderr to a file... Something along the lines of: (please note i added the -jar switch as well) echo -n ' Graylog2-Server'; java -jar /usr/local/graylog2-server/graylog2-server.jar 1> somefile 2>&1

Re: Help with rc.local scripts

2012-01-06 Thread keith
On 06/01/2012 11:46, Zi Loff wrote: On Jan 6, 2012, at 11:34 AM, keith wrote: On 05/01/2012 16:43, keith wrote: Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure out how to get the some of the programs to auto start, They all start when run as root but only the mogod one

Re: Help with rc.local scripts

2012-01-06 Thread Stuart Henderson
On 2012-01-05, keith wrote: > Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure > out how to get the some of the programs to auto start, They all start > when run as root but only the mogod one starts up at boot time. Can > anyone help ? > > if [ -x /etc/rc.d/mongod ]; then

Re: Help with rc.local scripts

2012-01-06 Thread Zé Loff
On Jan 6, 2012, at 11:34 AM, keith wrote: > On 05/01/2012 16:43, keith wrote: >> Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure out how to get the some of the programs to auto start, They all start when run as root but only the mogod one starts up at boot time. Can anyone he

Re: Help with rc.local scripts

2012-01-06 Thread keith
On 05/01/2012 16:43, keith wrote: Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure out how to get the some of the programs to auto start, They all start when run as root but only the mogod one starts up at boot time. Can anyone help ? if [ -x /etc/rc.d/mongod ]; then e

Re: Help with rc.local scripts

2012-01-05 Thread Otto Moerbeek
On Thu, Jan 05, 2012 at 04:43:30PM +, keith wrote: > Hi, I have build a graylog2 server with obsd 5.0 x64 but can't > figure out how to get the some of the programs to auto start, They > all start when run as root but only the mogod one starts up at boot > time. Can anyone help ? > > if [ -x

Re: Help with rc.local scripts

2012-01-05 Thread Zé Loff
Aren't you missing a few '&' at the end of some of the start commands? I'd say that's the problem... On Jan 5, 2012, at 4:43 PM, keith wrote: > Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure out how to get the some of the programs to auto start, They all start when run as r

Help with rc.local scripts

2012-01-05 Thread keith
Hi, I have build a graylog2 server with obsd 5.0 x64 but can't figure out how to get the some of the programs to auto start, They all start when run as root but only the mogod one starts up at boot time. Can anyone help ? if [ -x /etc/rc.d/mongod ]; then echo -n ' MongoDB'; /etc/rc.d/mongod