Samba重新加载新的dhcp租约


0

我有一个通过USB连接的电话。我正在使用手机的数据连接。每当我为新租约运行dhclient(NetworkManager关闭)时,我收到错误消息但租约成功。这是输出。

root@roni# dhclient usb0
smbd.service is not active, cannot reload.
invoke-rc.d: initscript smbd, action "reload" failed.

我的问题是为什么dhclient会在每次新租约后重新加载Samba?

Answers:


0

我发现这也在寻找类似的问题,我在enp2s0(局域网静态IP)上运行samba,每当dhclient更新我的WAN enp1s0它重新启动samba并破坏局域网共享时,如果samba正在侦听刚更新的局域网,则需要这样做IP更改或重新启动后将samba绑定到新获得的IP,但对我来说没有必要,所以我刚刚编辑过 /etc/dhcp/dhclient-enter-hooks.d/samba 并评论了接近最后一行......

#[ -x /etc/init.d/smbd ] && /usr/sbin/invoke-rc.d smbd reload
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.