[hobbit] Hobbit startup script.

Craig Cook Craig.Cook at carquest.com
Tue Jun 16 15:15:34 CEST 2009


>It still runs as hobbit, it is just that any script in init.d gets run as root by init.

Correct.  Init.d scripts are run by root on system startup.  Well, actually scripts in the rc.d dirs.

>So consequently anything that needs to be run by a user such as hobbit, has its startup script coded to do an su hobbit -c "blahblahblah".

Correct.  Any example scripts people have provided do the "su hobbit -c " thing *because* the hobbit application will not allow you to start it as the root user, due to security issues.

>In other words, hobbit still runs as hobbit but the startup script can be run as root.

Correct, if you are using an init.d script.  You can not run the "hobbit.sh" startup/shutdown script in the hobbit home directory as root for security reasons previously mentioned (nor should you edit that hobbit.sh script to allow root to start it).

Craig



More information about the Xymon mailing list