When samba is not running, but samba_enable=YES in /etc/rc.conf, the "status" subcommand will return with an exit value of 0 (indicating success). This breaks scripts, that try to collect daemon status to restart stopped services. Collect the return values of both smbd and nmbd and return with exit status of either of them if one is failing. Port maintainer (timur@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 How-To-Repeat: Stop samba, run the rc script as follows: root@coyote:~# /usr/local/etc/rc.d/samba status ; echo $? nmbd is not running. smbd is not running. 0
Responsible Changed From-To: freebsd-ports-bugs->timur Over to maintainer (via the GNATS Auto Assign Tool)
uqs 2011-01-30 11:19:39 UTC FreeBSD ports repository (src committer) Modified files: net/samba34 Makefile net/samba34/files samba.in Log: Collect the return values of both smbd and nmbd and return with exit status of either of them if one is failing. PR: ports/151173 Submitted by: uqs Approved by: maintainer timeout (3 months) Feature safe: yes Revision Changes Path 1.9 +1 -1 ports/net/samba34/Makefile 1.3 +9 -2 ports/net/samba34/files/samba.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed.