[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Hobbit startup script.
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit startup script.
- From: Buchan Milne <bgmilne (at) staff.telkomsa.net>
- Date: Fri, 5 Jun 2009 12:29:56 +0200
- Cc: "David Peters" <davidp (at) electronf.com>
- References: <CB3A73A76BED47AB9B6360CF73095F8A (at) behemoth>
- User-agent: KMail/1.11.2 (Linux/2.6.27.10-desktop-1mnb; KDE/4.2.2; x86_64; ; )
On Friday 05 June 2009 12:09:00 David Peters wrote:
> Hi,
>
>
>
> 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
> it.
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 the
> script to not check for hobbit and then do an su to the hobbit user thus:
>
>
>
> su -c "/home/xymon/server/bin/hobbitlaunch
> --config=/home/xymon/server/etc/hobbitlaunch.cfg
> --env=/home/xymon/server/etc/hob
>
> bitserver.cfg --log=/var/log/xymon/hobbitlaunch.log
> --pidfile=/var/log/xymon/hobbitlaunch.pid"
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 you
worrying about this in the first place).
Regards,
Buchan