[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hobbit startup script.
- To: <hobbit (at) hswn.dk>
- Subject: Hobbit startup script.
- From: "David Peters" <davidp (at) electronf.com>
- Date: Fri, 5 Jun 2009 20:09:00 +1000
- Thread-index: AcnlxaV/ABH59UT5Q4yPCjl/7LkV8Q==
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.
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"
why is it done this way rather than as above, thus allowing the server to
start out of init.d?