LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   where is the init samba script (https://www.linuxquestions.org/questions/debian-26/where-is-the-init-samba-script-4175462235/)

abd_bela 05-16-2013 10:39 AM

where is the init samba script
 
Hi,
I want to remove the samba server, I can't find the running script
here is output of commands:

# ls /etc/rc2.d

K20speech-dispatcher S19cpufrequtils S30mdm S75sudo
K23ntp S20hddtemp S50pulseaudio S99acpi-support
K99ondemand S20kerneloops S50rsync S99grub-common
README S20vsftpd S70dns-clean S99rc.local
S05loadcpufreq S30lightdm S70pppd-dns

ps aux | grep mb
root 970 0.0 0.1 21424 3848 ? Ss May14 0:00 smbd -F
root 993 0.0 0.0 21528 1356 ? S May14 0:00 smbd -F
root 2067 0.0 0.1 13360 2152 ? Ss May14 0:33 nmbd -D

the smbd and nmbd are running, where are the starting script, by default the init level is 2 ( so there should be in rc2.d)

thanks for help
regards
Thanks a lot

cynwulf 05-16-2013 11:01 AM

/etc/init.d/samba ?

But if you don't want it, then just remove the samba package
Code:

# apt-get remove --purge samba

evo2 05-16-2013 06:19 PM

Hi,

not sure what version of Debian you're running but on my 7.0 box it is /etc/rc2.d/S07samba.
You should be able to use any of the standard tools to disable it. Eg
Code:

rcconf --off samba
If, you really don't see it in at /etc/rc2.d/S07samba, check what runlevel you are really on (it may not be 2), and also look at the scripts in /etc/init.d. Eg.

Code:

grep -E 'smbd|nmbd' /etc/init.d/*
Evo2.


All times are GMT -5. The time now is 12:15 AM.