Skip to content

smbd and nmbd daemons stop working unexpectedly

28. December 2011

Problem
Samba services were started automatically when the server is powered on.
But after some time, the Samba services are not running any more.

Cause
Unknown.
smbd and nmbd daemons stopped working unexpectedly.
pgrep smbd and pgrep nmbd return no process id
What does the log say? See /opt/local/var/log.smbd and log.nmbd

Solution
Unknown.

Workaround
Restart the services manually

sudo launchctl start org.samba.nmbd; sudo launchctl start org.samba.smbd

Hint
Maybe adding a “keep alive” option in the org.samba.smbd.plist / org,samba.nmbd.plist will help?

                <key>KeepAlive</key>
                <dict>
                       <key>SuccessfulExit</key>
               <false/>
                </dict>

Beware:
Use SuccessfulExit = false!
So samba services only gets restarted in case of an unexpected error.
Otherwise, you’ll get a loop, when launchd is restarting samba over and over again.

Advertisements
Leave a Comment

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: