LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2006, 07:11 AM   #1
AndyRids
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
Lisa Deamon


How do I get the Lisa Deamon to start at boot im running slackware 10.2 .. I know I can type "Lisa" into the terminal and get it started but...
 
Old 03-30-2006, 09:21 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Try using "/sbin/chkconfig".
You should have a startup/stop script in /etc/init.d or /etc/rc.d or something.
The scripts in /etc/init.d (on my box) have a commented line at the top that tells chkconfig how to behave (ie in what runlevels the "service" needs to be started).

man init tells you more about runlevels.

Basically, what chkconfig does is verify for all services (in a configurable order) if they need to be started when the runlevel changes (ie when you boot, you typically enter a multi-user runlevel like 3 (textual boot) or 5 (graphical boot)) and start them if needed.

For instance:
/sbin/chkconfig --list
tells you which services are scheduled to be started when each of the runlevels is entered.
 
Old 03-30-2006, 09:59 AM   #3
AndyRids
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I dont appear to have a chkconfig file I do have /etc/rc.d/rc.inet1.conf that contains configs for the network adapters.. But cant see anything that relates to other services starting or not.
 
Old 03-30-2006, 10:51 AM   #4
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
You could put whatever command you need for the daemon to start in /etc/rc.d/rc.local
 
Old 03-30-2006, 11:05 AM   #5
AndyRids
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Okies this looks like a plan I found that file so would the command be "/opt/kde/bin/lisa" ?

Dont realy want to try that blind so to speak as I found out that 1 duff command seems to fubar the system and when I still cant figure out the syntax to copy,move,delete and rename files at run level 3 it becomes a pain to try and fix lol
 
Old 03-30-2006, 11:18 AM   #6
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
This would work too (just put it in /etc/rc.d/rc.local)

Code:
if [ -x /opt/kde/bin/lisa ]; then
echo "Starting LiSa daemon"
/opt/kde/bin/lisa
fi
Checks if the lisa daemon is executable and then starts it

To edit the file in runlevel 3, run as root;

# pico /etc/rc.d/rc.local

edit it then do Ctrl-X to exit and "y" to save it.

Run

# /etc/rc.d/rc.local restart

to check that it works
 
Old 03-31-2006, 10:33 AM   #7
AndyRids
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for that it got Lisa running nicely
 
  


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
vsftpd deamon MMMarc Linux - Newbie 2 02-06-2005 09:19 AM
Lisa Deamon ptreves Linux - Networking 6 09-09-2004 02:47 PM
nmbd deamon jmono Linux - Newbie 6 01-04-2004 10:10 AM
Cron deamon? eXor Slackware 4 07-02-2003 11:55 AM
the acme deamon saturn_vk Linux - Software 0 03-25-2003 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:12 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