LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2013, 07:04 PM   #1
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Rep: Reputation: Disabled
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

Last edited by trackstar2000; 04-30-2013 at 07:06 PM.
 
Old 04-30-2013, 09:46 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 05-01-2013, 11:10 AM   #3
trackstar2000
Member
 
Registered: Apr 2013
Posts: 82

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by btmiller View Post
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/

Last edited by trackstar2000; 05-01-2013 at 12:31 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
LXer: Using Chkconfig To Mange Linux Service Run Levels LXer Syndicated Linux News 0 06-12-2008 07:00 PM
Why won't my FC3 rc0 and rc6 levels not call kill script when entering those levels? dvkwiatk Linux - General 2 11-11-2006 08:09 AM
what are run levels in chkconfig tej Linux - Newbie 1 09-20-2004 01:15 AM
Adding program to fedora startup: chkconfig and levels? jrbiochem Linux - General 2 07-09-2004 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration