[Pkg-samba-maint] Bug#762087: samba-ad-dc script doesn't check for running process in stop

Dominique Brazziel dbrazziel at snet.net
Thu Oct 9 15:17:28 UTC 2014

	I am not running an ad-dc samba server, the role
is 'auto', so that process never gets started.  At the top of the 'start' stanza we see:

SERVER_ROLE=`samba-tool testparm --parameter-name="server role"  2>/dev/null | tail -1`
                if [ "$SERVER_ROLE" != "active directory domain controller" ]; then
                    exit 0

- but no such check exists in the 'stop' case.  I think that could be the root cause of samba not shutting down
and would explain why samba-ad-dc is in 'waiting' state:
waiting for 'start-stop-daemon' to complete on a non-existent process.  When I manually kill the '/etc/init.d/samba-ad-dc stop' process the samba service ends quickly.

More information about the Pkg-samba-maint mailing list