~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to src/master/service.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/{control,rules}: enable PIE hardening.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
   this many seconds, kill the process */
9
9
#define SERVICE_FIRST_STATUS_TIMEOUT_SECS 30
10
10
 
 
11
#define SERVICE_STARTUP_FAILURE_THROTTLE_MIN_SECS 2
 
12
#define SERVICE_STARTUP_FAILURE_THROTTLE_MAX_SECS 60
 
13
 
11
14
enum service_listener_type {
12
15
        SERVICE_LISTENER_UNIX,
13
16
        SERVICE_LISTENER_FIFO,
21
24
        int fd; /* may be -1 */
22
25
        struct io *io;
23
26
 
 
27
        const char *name;
24
28
        const char *inet_address;
25
29
 
26
30
        union {
79
83
        int status_fd[2];
80
84
        struct io *io_status;
81
85
 
 
86
        unsigned int throttle_secs;
 
87
        time_t exit_failure_last;
 
88
        unsigned int exit_failures_in_sec;
 
89
 
82
90
        /* Login process's notify fd. We change its seek position to
83
91
           communicate state to login processes. */
84
92
        int login_notify_fd;
103
111
        unsigned int have_inet_listeners:1;
104
112
        /* service_login_notify()'s last notification state */
105
113
        unsigned int last_login_full_notify:1;
 
114
        /* service has exited at least once with exit code 0 */
 
115
        unsigned int have_successful_exits:1;
106
116
};
107
117
 
108
118
struct service_list {