LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chkconfig levels (https://www.linuxquestions.org/questions/linux-newbie-8/chkconfig-levels-4175460208/)

trackstar2000 04-30-2013 07:04 PM

chkconfig levels
 
I need a license manager service to run in the background for an application. Users logged in via VNC over ssh to run the math app.

The license manager service can't be run using root (not recommended). I want to run it automatically even after reboot.

Do I run at level 3?


chkconfig 3 servicename on

TIA,
ts

btmiller 04-30-2013 09:46 PM

What distro are you using? In Red Hat based distros, usually level 3 is multiuser without start X (the graphics) and 5 is multiuser with X. So if your machines boots to a graphical login, you'll probably need to use runlevel 5. Debian distributions use different runlevels (run level 3 for full multiuser, IIRC). So it depends on your distribution.

Does your startup script launch the license manager under a different user (via su)? All of the init scripts are run as root unless their drop their own priveliges by su-ing to another account. So this is something to keep in mind.

trackstar2000 05-01-2013 11:10 AM

Quote:

Originally Posted by btmiller (Post 4942291)
What distro are you using? In Red Hat based distros, usually level 3 is multiuser without start X (the graphics) and 5 is multiuser with X. So if your machines boots to a graphical login, you'll probably need to use runlevel 5. Debian distributions use different runlevels (run level 3 for full multiuser, IIRC). So it depends on your distribution.

Does your startup script launch the license manager under a different user (via su)? All of the init scripts are run as root unless their drop their own priveliges by su-ing to another account. So this is something to keep in mind.

It is centos 6.4. It loads in up in GUI. Right now, I don't have any thing on startup script to launch it. I have to manually switch to none root and run this -->/usr/local/MATLAB/R2013/etc/lmstart

The license manager needs to run or else when user run the application, it won't allow to open.

Edit: I found this link from vendor and will give it a try.

http://www.mathworks.com/support/sol.../data/1-1AP76/


All times are GMT -5. The time now is 03:16 PM.