LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-18-2004, 01:21 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
how to make something start at boot?


i have samba running on a RH9 workstation and id like the server to start when the box boots... what is the CLI command to make that happen...

thanks.
 
Old 08-18-2004, 01:29 PM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
maybe the most common way is to add the command to your init files so it gets read and started at the init part of the boot process....one "good" file is rc.local which resides (possibly) in /etc/rc.local and any commands put into this file are launched after all the other init commands....

there are also runlevel-dependent init files, but check out the rc.local first then get to know the rest of the family...and files that reside in /etc/rc.d/ too
 
Old 08-18-2004, 01:45 PM   #3
cmfarley19
Member
 
Registered: Nov 2002
Location: Central VA
Distribution: Ubuntu/Debian
Posts: 228

Rep: Reputation: 32
This might help...
Getting a Daemon to run at Boot time
 
Old 08-18-2004, 02:05 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,172

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
If samba was selected during the install or if installed with the RH RPM.

service --level 35 samba on (level i.e. runlevel)

In this example samba will start for runlevels 3 & 5. To see how each service is configured:
chkconfig --list

If it isnt configured via init files and do not want to configure as such then you can start via rc.local
 
Old 08-20-2004, 08:57 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by michaelk
If samba was selected during the install or if installed with the RH RPM.

service --level 35 samba on (level i.e. runlevel)

In this example samba will start for runlevels 3 & 5. To see how each service is configured:
chkconfig --list

If it isnt configured via init files and do not want to configure as such then you can start via rc.local
Code:
[root@dhcppc0 root]# service --level 35 samba
--level: unrecognized service
[root@dhcppc0 root]# service 35 samba
35: unrecognized service
[root@dhcppc0 root]# man service
No manual entry for service
[root@dhcppc0 root]# service --35 samba
--35: unrecognized service
i installed samba via yum install samba
 
Old 08-20-2004, 10:45 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
How about this...
chkconfig --list smb
chkconfig --level 35 smb on
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What do I have to edit to make a module start on boot? WopMaster8 Linux - Wireless Networking 5 05-23-2004 11:25 AM
How To make MySql and Apache start at boot time? umeshz Red Hat 1 05-18-2004 02:00 PM
How to make programs start on boot... AudioMechanic Linux - Software 4 04-16-2004 07:52 AM
How can i make xfree86 start automatically at boot? KiLLaWaBBiT Linux - Software 1 04-07-2003 11:06 AM
How to make a program start up on boot? daverino Linux - Newbie 1 02-22-2002 02:24 AM


All times are GMT -5. The time now is 04:07 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration