Hi, So how can I actually check in my initscript that it is running during the installation process so I can skip the start of my service at that time?
At the moment my postinst file looks like this: #!/bin/sh set -e # Automatically added by dh_installinit if [ -x "/etc/init.d/red5" ]; then update-rc.d red5 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d red5 start || exit $? else /etc/init.d/red5 start || exit $? fi fi # End automatically added section And my service (red5) starts when I don't want it to. Regards, David -----Original Message----- From: The Fungi [mailto:[EMAIL PROTECTED] Sent: Monday, 7 April 2008 8:38 AM To: debian-mentors@lists.debian.org Subject: Re: Custom Debian package installation On Mon, Apr 07, 2008 at 07:43:34AM +1000, David Schulberg wrote: > I have a Debian package which starts a service set up by having > ‘dh_installinit’ in my rules file. > > I want the service to start every time my computer boots up. > > Does it also have to fire up straight after I install the package? > > I have a configuration file that is part of my package which needs > to be customised before I run the service that is installed by > the package so I don’t want to run the service until I have done > that. The way this is usually tackled is to either have the initscript refuse to start the service if not yet configured (but still exit with an okay return value so package installation succeeds), or ship a file in /etc/default/ sourced by the initscript and containing a switch variable to make the initscript's start function a no-op (until edited to turn it on). -- { IRL(Jeremy_Stanley); PGP(9E8DFF2E4F5995F8FEADDC5829ABF7441FB84657); SMTP([EMAIL PROTECTED]); IRC([EMAIL PROTECTED]); ICQ(114362511); AIM(dreadazathoth); YAHOO(crawlingchaoslabs); FINGER([EMAIL PROTECTED]); MUD([EMAIL PROTECTED]:6669); WWW(http://fungi.yuggoth.org/); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]