Router: RT-AC88U
Firmware: 386.5_2
It seems that this problem has occurred since 386.5_X.
I installed samba by
And it has worked fine for the last few months (or even years). But recently I found that the samba server stays dead after system reboot and have to run
manually to start samba server.
So I added lines to `/jffs/scripts/post-mount` to print the `pid` of `smbd` and found such phenomenon in the system log:
Please pay attention to the first and last lines of the log.
So I searched by "smb daemon is stopped" in the GitHub source code and found that:
the `smbd` and `nmbd` process would be killed by function `stop_samba` and print a message to the log in this line.
May I ask the motivation of this operation? And is it a bug ? If not, how can I solve this?
Firmware: 386.5_2
It seems that this problem has occurred since 386.5_X.
I installed samba by
Code:
opkg install samba4-server
Code:
/opt/sbin/smbd -D
/opt/sbin/nmbd -D
So I added lines to `/jffs/scripts/post-mount` to print the `pid` of `smbd` and found such phenomenon in the system log:
Code:
Jun 4 08:20:06 post-mount: smbd pid: 5571 5569 5568 5566 # these are the pid printed, indicating that the samba server installed by opkg starts normally at system boot.
Jun 4 08:20:06 rc_service: hotplug 4384:notify_rc restart_nasapps
Jun 4 17:20:06 custom_script: Running /jffs/scripts/service-event (args: restart nasapps)
Jun 4 17:20:06 avahi-daemon[514]: Files changed, reloading.
Jun 4 17:20:06 avahi-daemon[514]: Loading service file /tmp/avahi/services/mt-daap.service.
Jun 4 17:20:06 iTunes: daemon is stopped
Jun 4 17:20:06 FTP_Server: daemon is stopped
Jun 4 08:20:06 spdMerlin: /tmp/mnt/cao contains Entware, starting spdMerlin
Jun 4 17:20:06 Samba_Server: smb daemon is stopped # smbd and nmbd are killed here.
So I searched by "smb daemon is stopped" in the GitHub source code and found that:
the `smbd` and `nmbd` process would be killed by function `stop_samba` and print a message to the log in this line.
May I ask the motivation of this operation? And is it a bug ? If not, how can I solve this?
Last edited: