[hobbit] Hobbit startup script.
davidp at electronf.com
Fri Jun 5 12:44:24 CEST 2009
I do get your answer though. There should be a script for the OS I am on
that calls runclient.sh and does the su there, not inside the runclient
From: Buchan Milne [mailto:bgmilne at staff.telkomsa.net]
Sent: Friday, 5 June 2009 8:30 PM
To: hobbit at hswn.dk
Cc: David Peters
Subject: Re: [hobbit] Hobbit startup script.
On Friday 05 June 2009 12:09:00 David Peters wrote:
> I understand that hobbit needs to run as the hobbit user, but it is a bit
> annoying to have the hobbit startup script require the hobbit user to run
I don't quite understand the second part of your statement above ...
> When I want to run it automagically out of /etc/init.d I have to change
> script to not check for hobbit and then do an su to the hobbit user thus:
> su -c "/home/xymon/server/bin/hobbitlaunch
> bitserver.cfg --log=/var/log/xymon/hobbitlaunch.log
Which script are you referring to here? The "runclient.sh" script ?
> why is it done this way rather than as above, thus allowing the server to
> start out of init.d?
Have you looked at (e.g.) rpm/hobbit-init.d and debian/hobbit.init in the
source distribution ? They basically run 'su - hobbit runclient.sh ...', and
are suitable for use from /etc/init.d
Of course, the next question I have is, what Unix or Linux distribution are
you on, and why didn't you install from packages (which would have avoided
worrying about this in the first place).
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon