Package: daemontools Severity: wishlist Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi daemontools maintainer, Thanks you for you to maintain daemontools package. And today, I'll wish you to do some modification to your package. > daemontools (1:0.76-2) unstable; urgency=low > > * debian/daemontools-run.postinst: also remove inittab entry on > upgrade > from daemontools-installer FHS version, to have new entry added > afterwards; look also for /var/lib/svscan, to possibly copy > content to > /etc/service/ on upgrade (closes: #468853). > * debian/daemontools.NEWS.Debian: mention /etc/service/ as default > directory for services; recommend compatibility symlink. Yes, you mention this at NEWS.Debian, that's good. great. And users should read that and take action for this, yes, of course. But, if package moves symlinks from /var/lib/svscan (or /service) to /etc/service when when users install package, it's wonderful! excellent! ...don't you think so? :-) So I suppose you to do it at postinst like attached patch (it's not tested yet, sorry ;) or use debconf to ask users which directory do you want to use for daemontools. Please consider this. - -- Regards, Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp Japanese Debian Maintainer, see http://wiki.debian.org/HidekiYamane -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkiP+h8ACgkQIu0hy8THJktz5QCgqE3PepA4G1wQB58NSIbzm1gC 3cIAni9z95Qla2YkIaOpFNlOl3m3Ig1r =GiVn -----END PGP SIGNATURE-----
--- daemontools-run.postinst.orig 2008-07-30 14:04:04.000000000 +0900 +++ daemontools-run.postinst 2008-07-30 14:15:12.000000000 +0900 @@ -36,6 +36,15 @@ kill -s HUP 1 sleep 1 fi + if [ -d /services ]; then + for links in `ls /services` + do + if [ -L $links ]; then + mv $links /etc/service/ + fi + done + fi + # update from daemontools-installer (fhs version) if grep -q 'SV:123456:respawn:/usr/bin/svscanboot' /etc/inittab; then echo 'Removing SV inittab entry...' @@ -46,6 +55,15 @@ kill -s HUP 1 sleep 1 fi + if [ -d /var/lib/svscan ]; then + for links in `ls /var/lib/svscan` + do + if [ -L $links ]; then + mv $links /etc/service/ + fi + done + fi + fi if test -z "$2"; then # not upgrading