couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Candler (JIRA)" <>
Subject [jira] Commented: (COUCHDB-499) allow /etc/default/couchdb to control whether couchdb is started by default
Date Sat, 12 Sep 2009 08:08:57 GMT


Brian Candler commented on COUCHDB-499:

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

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

# '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
# how often should we run the queue
# options common to quez-runner and listening daemon
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
# special flags given to exim directly after the -q. See exim(8)
# options for daemon listening on port 25



> allow /etc/default/couchdb to control whether couchdb is started by default
> ---------------------------------------------------------------------------
>                 Key: COUCHDB-499
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>    Affects Versions: 0.10
>         Environment: Ubuntu 9.10 (Karmic)
>            Reporter: Elliot Murphy
>            Priority: Minor
>             Fix For: 0.10
>         Attachments: control-service-start.patch
> couchdb starts by default when installed on Ubuntu (or any debian derivative).
> In Ubuntu, we are including couchdb in the default desktop install.
> however, we are not using the system couchdb, we are starting a per-user couchdb instance
> separately, ubuntu is working on minimizing boot times.
> it would be nice if laptops and netbooks did not have couchdb startup time included in
a normal system boot unless the user really wanted to have the system couchdb starting up.
this is the Ubuntu bug number for reference:
> One way to fix this would be to use a variable in /etc/default/couchdb to determine whether
or not to start the system couchdb instance. This is the approach that is taken by pulseaudio,
fetchmail, and monit. I'm discussing this fix with Ubuntu core-devs now:
> I'm also attaching a patch which changes the init script and /etc/couchdb/default in
the way I've just described.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message