LinuxQuestions.org
Visit Jeremy's Blog.
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, 12: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, 12: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, 01: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, 04:03 AM   #4
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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, 05: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, 11:53 AM   #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 07:31 PM
Easy urpmi ,no easy send mail. akihandyman Linux - General 2 12-27-2004 02:15 PM
Linux4RegularGuys - EASY FTP setup using vsftpd - READ THIS FOR EASY HELP DropHit Linux - Networking 4 11-25-2004 02:44 PM
Easy for most ... Please help.... kaz4u2dig Linux - Newbie 1 10-18-2004 09:46 PM
Easy Easy please help kaz4u2dig Linux - Newbie 2 01-23-2004 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration