在 UBUNTU 12.04 上安装 Samba 后,我检查了系统链接运行级别目录,但找不到 smbd 链接。这很有趣,因为 smbd 会在重启时自动启动。
这是我的 rc 目录的 ls:
secadmin@SAM:~$ ls /etc/rc*
/etc/rc.local
/etc/rc0.d:
K20firewall K20libnss-ldap K20testscript K20watchdog K21postgresql README S30urandom S35networking S60umountroot
K20freeradius K20sam K20updater K20watchdogdev K80slapd S20sendsigs S31umountnfs.sh S40umountfs S90halt
/etc/rc1.d:
K20firewall K20libnss-ldap K20testscript K20watchdog K21postgresql K80slapd S30killprocs S70pppd-dns
K20freeradius K20sam K20updater K20watchdogdev K77ntp README S70dns-clean S90single
/etc/rc2.d:
README S19slapd S20freeradius S20sam S20updater S20watchdogdev S50rsync S70pppd-dns S99grub-common S99rc.local
S19postgresql S20firewall S20libnss-ldap S20testscript S20watchdog S23ntp S70dns-clean S75sudo S99ondemand
/etc/rc3.d:
README S19slapd S20freeradius S20sam S20updater S20watchdogdev S50rsync S70pppd-dns S99grub-common S99rc.local
S19postgresql S20firewall S20libnss-ldap S20testscript S20watchdog S23ntp S70dns-clean S75sudo S99ondemand
/etc/rc4.d:
README S19slapd S20freeradius S20sam S20updater S20watchdogdev S50rsync S70pppd-dns S99grub-common S99rc.local
S19postgresql S20firewall S20libnss-ldap S20testscript S20watchdog S23ntp S70dns-clean S75sudo S99ondemand
/etc/rc5.d:
README S19slapd S20freeradius S20sam S20updater S20watchdogdev S50rsync S70pppd-dns S99grub-common S99rc.local
S19postgresql S20firewall S20libnss-ldap S20testscript S20watchdog S23ntp S70dns-clean S75sudo S99ondemand
/etc/rc6.d:
K20firewall K20libnss-ldap K20testscript K20watchdog K21postgresql README S30urandom S35networking S60umountroot
K20freeradius K20sam K20updater K20watchdogdev K80slapd S20sendsigs S31umountnfs.sh S40umountfs S90reboot
/etc/rcS.d:
README S37apparmor S55urandom
在网上搜索后,我发现链接通常位于 rc 目录中。有人能告诉我它们在哪里吗?
答案1
它现在是一项新任务。查看 /etc/init/smbd.conf 以获取有关它的所有信息。