samba emerged and started after emerge fine, but after reboot got this error in /var/log/samba/log.samba [2012/11/01 17:13:11, 0] ../source4/smbd/server.c:369(binary_smbd_main) samba version 4.0.0rc4 started. Copyright Andrew Tridgell and the Samba Team 1992-2012 [2012/11/01 17:13:11, 0] ../lib/util/pidfile.c:117(pidfile_create) ERROR: can't open /var/run/samba/samba.pid: Error was No such file or directory if i do: # mkdir -p /var/run/samba/ # touch /var/run/samba/samba.pid # /etc/init.d/samba start samba will start, but after next reboot this epic repeats :(
this is my fix for samba's runscript +start_pre() { + # Create a directory if not exists + checkpath --directory /var/run/samba/ +} start() { ebegin "Starting samba" -start-stop-daemon --start --exec /usr/sbin/samba +start-stop-daemon --start --make-pidfile --pidfile /var/run/samba/samba.pid --exec /usr/sbin/samba eend $? }
(In reply to comment #1) > this is my fix for samba's runscript Looks plausible to me. Can the maintainer please check that into the tree?
+ 08 Nov 2012; Víctor Ostorga <vostorga@gentoo.org> files/4.0/samba4.initd, + -samba-3.5.17.ebuild, -samba-3.6.7.ebuild, -samba-3.6.8.ebuild, + -samba-4.0.0_alpha17.ebuild, -samba-4.0.0_rc1.ebuild, + -samba-4.0.0_rc2.ebuild: + Cleaning up old ebuilds. Fixing up non existant samba.pid condition. Patch + thanks to Claude <gta3user@ya.ru>