couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: [jira] Commented: (COUCHDB-499) allow /etc/default/couchdb to control whether couchdb is started by default
Date Sat, 12 Sep 2009 08:01:22 GMT
On Thu, Sep 10, 2009 at 11:34:57AM -0700, Paul Joseph Davis (JIRA) wrote:
> Oh good point. I'm not sure exactly who does use the /etc/default/ system.

On my Ubuntu Hardy desktop:

$ ls /etc/default/
acpid               ddclient                         pcmcia
acpi-support        devpts                           pmi
alsa                exim4                            portmap
apache2             fetchmail                        pound
apache2.dpkg-old    hal                              powernowd
apmd                halt                             pulseaudio
apport              iodine                           rcS
avahi-daemon        klogd                            rsync
bittorrent          linux-restricted-modules-common  slapd
bluetooth           lvm-common                       smartmontools
bluetooth.dpkg-new  mdadm                            ssh
bootlogd            nfs-common                       syslogd
brltty              nfs-kernel-server                tmpfs
console-setup       ntp                              ufw
cupsys              ntpdate                          useradd
dbus                nvidia-kernel

In most cases these files aren't used for deciding whether the server is
stopped or started. e.g.

$ cat /etc/default/ntp
NTPD_OPTS='-g'
$ 

If you want that package installed but not running, you'd use update-rc.d

However perhaps a better example is exim4, which has a number of options
including no daemon, or a daemon which is just a queue runner, or a daemon
which is both queue runner or smtp listener. This is configured in
/etc/default/exim4 and so the user can select it using dpkg-reconfigure

# /etc/default/exim4
EX4DEF_VERSION=''

# 'combined' -	 one daemon running queue and listening on SMTP port
# 'no'       -	 no daemon running the queue
# 'separate' -	 two separate daemons
# 'ppp'      -   only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from
# /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='30m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# options for daemon listening on port 25
SMTPLISTENEROPTIONS=''

Regards,

Brian.

Mime
View raw message