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. |
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 |
This might help...
Getting a Daemon to run at Boot time |
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 |
Quote:
Code:
[root@dhcppc0 root]# service --level 35 samba |
How about this...
chkconfig --list smb chkconfig --level 35 smb on |
All times are GMT -5. The time now is 04:12 PM. |