LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to make something start at boot? (https://www.linuxquestions.org/questions/linux-general-1/how-to-make-something-start-at-boot-219302/)

Lleb_KCir 08-18-2004 12:21 PM

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.

b0uncer 08-18-2004 12:29 PM

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

cmfarley19 08-18-2004 12:45 PM

This might help...
Getting a Daemon to run at Boot time

michaelk 08-18-2004 01:05 PM

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

Lleb_KCir 08-20-2004 07:57 PM

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

homey 08-20-2004 09:45 PM

How about this...
chkconfig --list smb
chkconfig --level 35 smb on


All times are GMT -5. The time now is 04:12 PM.