LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2003, 01:27 PM   #1
jhotchkiss
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 17

Rep: Reputation: 0
Here's an easy one...


Everytime I reboot my Linux server, I have to manually start the smb services by executing the following:

/sbin/service smb start

Is there a way for this service to be configured to automatically start on reboot?

Thanks!
Jason
 
Old 09-19-2003, 01:58 PM   #2
Lenny
LQ Newbie
 
Registered: Sep 2003
Location: Up north
Posts: 22

Rep: Reputation: 0
Don't know what it's called in red hat, but in my dist there's a file "/etc/conf.d/local.start" where you'd enter the command, and it'd be executed right before the login prompt is shown.
 
Old 09-19-2003, 02:04 PM   #3
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
probably something like

chkconfig smb on

for automatic start at run levels 3,4,5
 
Old 09-22-2003, 05:03 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
If there's an entry under /etc/rc.d/init.d then you can symlink to it under one of the other /etc/rc.d/rcX.d where X represents your runlevel.

For example,
ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S09smb would run the samba init script upon starting runlevel 3.

That OK?
 
Old 09-22-2003, 06:14 AM   #5
codec
Member
 
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304

Rep: Reputation: 30
u use RH9, so try this ---> /usr/bin/redhat-config-services
 
Old 09-23-2003, 12:53 PM   #6
jhotchkiss
LQ Newbie
 
Registered: Sep 2003
Distribution: RedHat 9
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Thymox
If there's an entry under /etc/rc.d/init.d then you can symlink to it under one of the other /etc/rc.d/rcX.d where X represents your runlevel.

For example,
ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S09smb would run the samba init script upon starting runlevel 3.

That OK?
This is what I was looking for. I am still learning about symbolic links and how to use them, so this would be a great thing to try, also, I still need to understand run levels, so I will consult my Linux Handbood for that. Thanks for the help!

-Jason
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
easy connect not easy in suse greg collins Linux - Newbie 11 03-30-2006 08:31 PM
Easy urpmi ,no easy send mail. akihandyman Linux - General 2 12-27-2004 03:15 PM
Linux4RegularGuys - EASY FTP setup using vsftpd - READ THIS FOR EASY HELP DropHit Linux - Networking 4 11-25-2004 03:44 PM
Easy for most ... Please help.... kaz4u2dig Linux - Newbie 1 10-18-2004 10:46 PM
Easy Easy please help kaz4u2dig Linux - Newbie 2 01-23-2004 02:01 PM


All times are GMT -5. The time now is 09:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration