As in summary. We need to: 1) Append the following lines in src_install(): diropts -o smsd -g sms -m0770 keepdir /var/run/smsd 2) Change: start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \ -c /etc/smsd.conf to: start-stop-daemon -b -u smsd:sms --start --exec /usr/bin/smsd -- \ -c /etc/smsd.conf -p /var/run/smsd/smsd.pid -i /var/run/smsd/smsd.working in ${FILESDIR}/smsd.initd2 file.
keepdir /var/run should not be used at all (bug #332633).
Created attachment 324414 [details, diff] init.d script patch creation of /var/run/smsd directory during before deamon startup
Created attachment 324418 [details, diff] smstools source patch smstools: use of /var/run/smsd directory for pidfile and infofile
Created attachment 324420 [details, diff] ebuild patch ebuild patch for 3.1.14-r2
Ok, so I've prepared patches for smstools which take your advice in its mind.
Created attachment 324428 [details, diff] modify smsd.initd2 file I decided to not modify any other files than smsd.initd2.
+*smstools-3.1.15 (20 Dec 2012) + + 20 Dec 2012; Tony Vroon <chainsaw@gentoo.org> +smstools-3.1.15.ebuild, + +files/smsd.initd3: + Cope with sudden new /run semantics, fix by Tomasz Chilinski in bug #435664. + Bump to version 3.1.15 as requested by Kilburn Abrahams in bug #439376.