Policy Weekly Issue #4/13: Starting daemons in the postinst scripts
- To: Debian Policy <debian-policy@lists.debian.org>
- Subject: Policy Weekly Issue #4/13: Starting daemons in the postinst scripts
- From: Christian Schwarz <schwarz@monet.m.isar.de>
- Date: Thu, 23 Oct 1997 23:01:07 +0200 (CEST)
- Message-id: <Pine.LNX.3.96.971023230049.17246U-100000@monet>
Topic 13: Starting daemons in the postinst scripts
STATE: DISCUSSION
The following policy has been suggested:
If a package installs a `daemon' that is usually started via an
/etc/init.d/ script, the package should query the system
administrator after the installation (in the postinst script) if
he/she wants to start the daemon now.
(Does someone know a better wording for this?)
Question: Should this policy apply to all packages that install daemons or
only to packages which install a daemon as well as user/admin commands?
Wouldn't it be good if every script in /etc/init.d would start with a
shell
variable that's set to 0 or 1, depending on whether the daemon should be
started at boot up time or not? For example:
#!/bin/sh
run_foo=0
test $run_foo == 0 && exit 0
...
The script (the variable) can be adapted by the postinst script. If the
sysadmin wants the start the daemon, it should be started in the postinst
script, too.
----------------------------------------------------------------------------
-- Christian Schwarz
schwarz@monet.m.isar.de, schwarz@schwarz-online.com,
Debian is looking schwarz@debian.org, schwarz@mathematik.tu-muenchen.de
for a logo! Have a
look at our drafts PGP-fp: 8F 61 EB 6D CF 23 CA D7 34 05 14 5C C8 DC 22 BA
at http://fatman.mathematik.tu-muenchen.de/~schwarz/debian-logo/
Reply to: