LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Here's an easy one... (https://www.linuxquestions.org/questions/linux-software-2/heres-an-easy-one-94557/)

jhotchkiss 09-19-2003 12:27 PM

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

Lenny 09-19-2003 12:58 PM

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.

Looking_Lost 09-19-2003 01:04 PM

probably something like

chkconfig smb on

for automatic start at run levels 3,4,5

Thymox 09-22-2003 04:03 AM

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?

codec 09-22-2003 05:14 AM

u use RH9, so try this ---> /usr/bin/redhat-config-services

jhotchkiss 09-23-2003 11:53 AM

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 07:30 PM.