Am Mittwoch, 29. Juni 2005 19:28 schrieb Tilman Koschnick: > On Wed, 2005-06-29 at 14:36 +0200, Markus Schulz wrote: > > Hello, > > i'm debianizing a software system for my company. > > this is my first attempt to debianize software and i have a problem > > with installing one of the created packages. > > > > install output: > > **************************** > > [EMAIL PROTECTED]:~/source$ LC_ALL=C sudo dpkg -i > > antzsystem-dispatcher_2.1_i386.deb (Reading database ... 82244 > > files and directories currently installed.) Preparing to replace > > antzsystem-dispatcher 2.1 (using > > antzsystem-dispatcher_2.1_i386.deb) ... > > Stopping dispatcher: antzsystem. > > Unpacking replacement antzsystem-dispatcher ... > > Setting up antzsystem-dispatcher (2.1) ... > > Starting dispatcher: ++: 2005-06-29 14:24:36 (19338:B7D1CA40) > > dispatcher.cpp:296: Daemonize now... > > Daemonize with logfile=/var/log/antzsystem/dispatcher.log and > > pidfile=/var/run/antzsystem/dispatcher.pid > > Now running all modules from /etc/antzsystem/init.d > > <And now it hangs> > > **************************** > > the child process of /usr/share/debconf/frontend then becomes a > > zombie. i don't understand why the install hangs after running the > > postinst script (which runs fine and exit with 0) from the package > > and use invoke-rc.d script which successfully starts the binary > > (which daemonize himself). The program works successfully after > > this, but the install process hangs. > > This snippet is taken from the end of another postinst script that > starts a daemon, maybe it applies to your case as well: > > ------8<------ > # tell debconf we are done. otherwise, it hangs waiting for the > daemon. db_stop; > > exit 0 > ------8<------ >
thanks, this works fine. perhaps this could be applied automaticly if debhelper(dh_installinit) postinst script generates invoke-rc.d code snippet? -- Markus Schulz UNIX is user friendly, it's just picky about who its friends are -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]