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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-19-2003, 12:27 PM
|
#1
|
LQ Newbie
Registered: Sep 2003
Distribution: RedHat 9
Posts: 17
Rep:
|
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
|
|
|
09-19-2003, 12:58 PM
|
#2
|
LQ Newbie
Registered: Sep 2003
Location: Up north
Posts: 22
Rep:
|
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.
|
|
|
09-19-2003, 01:04 PM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
probably something like
chkconfig smb on
for automatic start at run levels 3,4,5
|
|
|
09-22-2003, 04:03 AM
|
#4
|
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368
Rep:
|
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?
|
|
|
09-22-2003, 05:14 AM
|
#5
|
Member
Registered: Sep 2003
Location: mad.es.eu
Distribution: ubuntu 5.04 knoppix Slack91/10 freebsd51 vector4 redhat9
Posts: 304
Rep:
|
u use RH9, so try this ---> /usr/bin/redhat-config-services
|
|
|
09-23-2003, 11:53 AM
|
#6
|
LQ Newbie
Registered: Sep 2003
Distribution: RedHat 9
Posts: 17
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 12:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|