Package: sks
Version: 1.1.1+dpkgv3-6+squeeze1
Severity: normal
When I boot my server, the screen properly shows:
"Starting sks daemons: sksdb.. sksrecon.. done."
But the sks processes are not running.
Examining the log files show that they did startup but exited prematurely.
If I now type "invoke-rc.d sks start" the processes correctly start running.
When Linux is configured to use IPv6, the networking startup script returns
as soon as the interface is configured even though the IPv6 address is not
yet usable. It is still in the "tentative" state. It needs a few seconds
before switching to a usable state ("forever"). During boot, the sks init
script is run while the IPv6 is not yet usable thus the sks processes die.
I have modified my /etc/init.d/sks script and can now boot with SKS properly
running. I had to add a delay for the IPv6 to be usable:
while /sbin/ip -f inet6 addr list tentative | grep tentative
do
sleep 1
done
Kim Minh.
-- System Information:
Debian Release: 6.0.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages sks depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii db4.7-util 4.7.25-9 Berkeley v4.7 Database Utilities
ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib
ii libdb4.7 4.7.25-9 Berkeley v4.7 Database Libraries [
ii logrotate 3.7.8-6 Log rotation utility
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
sks recommends no packages.
Versions of packages sks suggests:
pn postfix | mail-transport-agen <none> (no description available)
pn procmail <none> (no description available)
-- Configuration Files:
/etc/default/sks changed:
initstart=yes
/etc/init.d/sks changed:
[ -r /etc/default/sks ] && . /etc/default/sks
DAEMON=/usr/sbin/sks
SKSDBPID=/var/run/sks/sksdb.pid
SKSRECONPID=/var/run/sks/sksrecon.pid
test -e $DAEMON || exit 0
if [ ! -x $DAEMON ]; then
echo "ERROR: $DAEMON is not executable"
exit 1
fi
wait_for_deaddaemon () {
pidfile=$1
pid=`cat $pidfile 2>/dev/null` || true
sleep 1
if test -n "$pid"
then
if kill -0 $pid 2>/dev/null
then
echo -n "."
cnt=0
while kill -0 $pid 2>/dev/null
do
cnt=`expr $cnt + 1`
if [ $cnt -gt 30 ]
then
echo " FAILED."
return 1
fi
sleep 2
echo -n "."
done
rm -f $pidfile
else
rm -f $pidfile
fi
fi
return 0
}
case "$1" in
start)
echo -n "Starting sks daemons:"
if [ "$initstart" != "yes" ]; then
echo " Not starting sks (as configured in /etc/default/sks)"
exit 0
fi
mkdir -p `dirname "$SKSDBPID"`
chown debian-sks `dirname "$SKSDBPID"`
echo -n " sksdb.."
while /sbin/ip -f inet6 addr list tentative | grep tentative
do
sleep 1
done
start-stop-daemon --start --quiet --oknodo \
--chuid debian-sks:debian-sks \
--background \
--make-pidfile \
--pidfile $SKSDBPID \
--exec $DAEMON -- db
echo -n " sksrecon.."
start-stop-daemon --start --quiet --oknodo \
--chuid debian-sks:debian-sks \
--background \
--make-pidfile \
--pidfile $SKSRECONPID \
--exec $DAEMON -- recon
echo " done."
;;
stop)
echo -n "Stopping sks daemons:"
echo -n " sksrecon.."
start-stop-daemon --stop --quiet --oknodo --pidfile $SKSRECONPID
wait_for_deaddaemon $SKSRECONPID || exit 1
echo -n " sksdb.."
start-stop-daemon --stop --quiet --oknodo --pidfile $SKSDBPID
wait_for_deaddaemon $SKSDBPID || exit 1
echo " done."
;;
reload)
# Hupping at least reopens logfiles.
# membership and mailsync are regularily read anyway
# not sure about the rest
# -- weasel
echo -n "Reloading sks daemons:"
echo -n " sksrecon.."
start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
$SKSRECONPID
echo -n " sksdb.."
start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile $SKSDBPID
echo " done."
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|reload|restart|force-reload}"
exit 1
;;
esac
exit 0
/etc/sks/membership changed: [not included]
/etc/sks/sksconf changed: [addresses anonymized]
pagesize: 128
ptree_pagesize: 8
hostname: keyserver.new.kim-minh.com
recon_address: 192.0.2.135 2001:db8:5d80:24f7:e899:ad6:ae6f:eb0f
hkp_address: 192.0.2.135 2001:db8:5d80:24f7:e899:ad6:ae6f:eb0f
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]