~sbeattie/ubuntu/oneiric/dovecot/dovecot-lp792557

« back to all changes in this revision

Viewing changes to doc/dovecot-initd.sh

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-05-16 10:18:41 UTC
  • mfrom: (4.1.20 sid)
  • Revision ID: james.westby@ubuntu.com-20110516101841-wo4hf1ewxssic6xj
Tags: 1:2.0.12-1ubuntu1
* Merge from Debian Unstable, remaining changes are:
  + Add mail-stack-delivery as per server-maverick-mail-integration spec:
    - Update debian/rules
    - Convert existing package to a dummy package and new binary in debian/control.
    - Update maintainer scripts.
    - Move previously installed backups and config files to a new package namespace in preinst.
    - Add new debian/mail-stack-delivery.prerm to handle downgrades.
    - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*
  + Use Snakeoil SSL certifications by default:
    - debian/control: Depend on ssl-cert.
    - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - Create debian/dovecot-common.ufw.profile.
    - debian/rules: install profile
    - debian/control: suggest ufw.
  + debian/{control,rules}: enable PIE hardening.
  + debian/dovecot-common.dirs: Added usr/share/doc/dovecot-common
  + Add apport hook:
    - debian/rules, debian/source_dovecot.py
  + Add upstart job:
    - debian/rules, debian/dovecot-common.dovecot.upstart, debian/control,
      debian/dovecot-common.dirs, dovecot-imapd.{postrm, postinst, prerm},
      debian/dovecot-pop3d.{postinst, postrm, prerm}. mail-stack-deliver.postinst:
      Convert init script to upstart. Apart of the server-maverick-upstart-conversion
      specification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
### BEGIN INIT INFO
 
3
# Provides:          dovecot
 
4
# Required-Start:    $local_fs $remote_fs $network $syslog $time
 
5
# Required-Stop:     $local_fs $remote_fs $network $syslog
 
6
# Should-Start:      postgresql mysql slapd winbind
 
7
# Should-Stop:       postgresql mysql slapd winbind
 
8
# Default-Start:     2 3 4 5
 
9
# Default-Stop:      0 1 6
 
10
# Short-Description: Dovecot init script
 
11
# Description:       Init script for dovecot services
 
12
### END INIT INFO
2
13
 
3
14
# Example /etc/init.d/dovecot script. Change DAEMON if necessary.
4
15
# License is public domain.
5
16
 
6
17
DAEMON=/usr/local/sbin/dovecot
7
18
 
 
19
# Uncomment to allow Dovecot daemons to produce core dumps.
 
20
#ulimit -c unlimited
 
21
 
8
22
test -x $DAEMON || exit 1
9
23
set -e
10
24
 
11
 
base_dir=`$DAEMON -a|grep '^base_dir: '|sed 's/^base_dir: //'`
 
25
base_dir=`$DAEMON config -h base_dir`
12
26
pidfile=$base_dir/master.pid
13
27
 
14
28
if test -f $pidfile; then