Re: systemd changes in Git/Debian Auto-Builds

2016-02-22 Thread Thomas Leuxner
* Timo Sirainen  2016.02.22 09:28:

> Another fix: 
> https://git.dovecot.net/dovecot/core/commit/2d5fcede6dcce079fdca5f0589c9c2142f016a65

Thanks. Confirmed effective.


signature.asc
Description: Digital signature


Re: systemd changes in Git/Debian Auto-Builds

2016-02-22 Thread Timo Sirainen
On 21 Feb 2016, at 14:23, Thomas Leuxner  wrote:
> 
> * aki.tu...@dovecot.fi  2016.02.21 12:43:
> 
>> This is fixed in
>> https://github.com/dovecot/core/commit/22d75d47097ca83c6e824a5129d81e8f18fb589b
> 
> Thanks Aki. As all patches are in the source tree, I guess this is not 
> included in Stephan's Auto-Build:
> 
> $ dpkg --unpack dovecot-core_2.2.21-1~auto+130_amd64.deb 
> 
> $ grep PID /lib/systemd/system/dovecot.service 
> PIDFile=/var/run/dovecot/dovecot/master.pid
> 
> I manually edited the file afterwards and ran dpkg --configure which brought 
> up the server.

Another fix: 
https://git.dovecot.net/dovecot/core/commit/2d5fcede6dcce079fdca5f0589c9c2142f016a65


Re: systemd changes in Git/Debian Auto-Builds

2016-02-21 Thread Reuben Farrelly



On 21/02/2016 11:35 PM, aki.tu...@dovecot.fi wrote:


By manually editing the systemd file above I was able to get the service up.

Reuben


Hi,

where was your pid file located?
---
Aki Tuomi


In /var/run/dovecot :

root@pi:~/dovecot/dovecot-2.2# ls -la /var/run/dovecot/
total 8
drwxr-xr-x  5 rootroot 780 Feb 22 01:18 .
drwxr-xr-x 17 rootroot 580 Jan  1  1970 ..
srw---  1 rootroot   0 Feb 22 01:18 anvil
srw---  1 rootroot   0 Feb 22 01:18 anvil-auth-penalty
srw---  1 dovecot root   0 Feb 22 01:18 auth-client
srw---  1 dovecot root   0 Feb 22 01:18 auth-login
srw---  1 rootroot   0 Feb 22 01:18 auth-master
-rw---  1 rootroot  32 Feb 21 15:25 auth-token-secret.dat
srw-rw-rw-  1 dovecot root   0 Feb 22 01:18 auth-userdb
srw---  1 dovecot root   0 Feb 22 01:18 auth-worker
srw---  1 rootroot   0 Feb 22 01:18 config
srw---  1 rootroot   0 Feb 22 01:18 dict
srw---  1 rootroot   0 Feb 22 01:18 dict-async
srw---  1 rootroot   0 Feb 22 01:18 director-admin
srw---  1 rootroot   0 Feb 22 01:18 director-userdb
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 dns-client
srw---  1 rootroot   0 Feb 22 01:18 doveadm-server
lrwxrwxrwx  1 rootroot  25 Feb 22 01:18 dovecot.conf -> 
/etc/dovecot/dovecot.conf

drwxr-xr-x  2 rootroot  40 Jan  1  1970 empty
srw---  1 rootroot   0 Feb 22 01:18 imap-hibernate
srw---  1 rootroot   0 Feb 22 01:18 imap-master
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 imap-urlauth
srw---  1 dovecot root   0 Feb 22 01:18 imap-urlauth-worker
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 indexer
srw---  1 dovecot root   0 Feb 22 01:18 indexer-worker
srw---  1 rootroot   0 Feb 22 01:18 ipc
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 lmtp
srw---  1 rootroot   0 Feb 22 01:18 log-errors
drwxr-x---  2 rootdovenull 120 Feb 22 01:18 login
-rw---  1 rootroot   6 Feb 22 01:18 master.pid
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 replication-notify
prw-rw-rw-  1 rootroot   0 Feb 22 01:18 replication-notify-fifo
srw---  1 dovecot root   0 Feb 22 01:18 replicator
srw-rw-rw-  1 dovecot root   0 Feb 22 01:18 replicator-doveadm
srw-rw-rw-  1 rootroot   0 Feb 22 01:18 ssl-params
srw---  1 rootroot   0 Feb 22 01:18 stats
prw-rw-rw-  1 rootroot   0 Feb 22 01:18 stats-mail
prw---  1 rootroot   0 Feb 22 01:18 stats-user
drwxr-x---  2 rootdovenull  80 Feb 22 01:18 token-login
root@pi:~/dovecot/dovecot-2.2#

Reuben


Re: systemd changes in Git/Debian Auto-Builds

2016-02-21 Thread aki . tuomi

> On February 21, 2016 at 2:31 PM Reuben Farrelly 
> wrote:
> 
> 
> On 21/02/2016 10:43 PM, aki.tu...@dovecot.fi wrote:
> >> The PID-File seems to be expected under yet another sub-dir of
> >> /var/run/dovecot.
> >>
> >> Regards
> >> Thomas
> >
> > Hi,
> >
> > This is fixed in
> > https://github.com/dovecot/core/commit/22d75d47097ca83c6e824a5129d81e8f18fb589b
> >
> > ---
> > Aki Tuomi
> 
> This doesn't seem to be fixed for me, with latest -hg and a full make 
> clean and new ./configure as of 30 mins ago.
> 
> This is with a raspberri pi with Raspbian 8 (all up to date).
> 
> [Service]
> Type=forking
> ExecStart=/usr/sbin/dovecot
> PIDFile=/var/run/dovecot/dovecot/master.pid
> ExecReload=/usr/bin/doveadm reload
> ExecStop=/usr/bin/doveadm stop
> PrivateTmp=true
> NonBlocking=yes
> # Enable this if your systemd is new enough to support it:
> #ProtectSystem=full
> 
> I'm running ./configure with:
> 
> ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib 
> --localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info 
> --with-moduledir=/usr/lib/dovecot/modules --disable-rpath 
> --with-systemdsystemunitdir=auto --with-storages=maildir 
> --with-ssl=openssl --with-solr --with-ioloop=best --with-stemmer 
> --with-libwrap --with-lucene --without-sqlite --without-ldap 
> --without-pgsql --disable-static
> 
> It's not an old dovecot.service file either - updated when I installed 
> the build a few minutes ago.
> 
> By manually editing the systemd file above I was able to get the service up.
> 
> Reuben

Hi,

where was your pid file located?
---
Aki Tuomi


Re: systemd changes in Git/Debian Auto-Builds

2016-02-21 Thread Reuben Farrelly

On 21/02/2016 10:43 PM, aki.tu...@dovecot.fi wrote:

The PID-File seems to be expected under yet another sub-dir of
/var/run/dovecot.

Regards
Thomas


Hi,

This is fixed in
https://github.com/dovecot/core/commit/22d75d47097ca83c6e824a5129d81e8f18fb589b

---
Aki Tuomi


This doesn't seem to be fixed for me, with latest -hg and a full make 
clean and new ./configure as of 30 mins ago.


This is with a raspberri pi with Raspbian 8 (all up to date).

[Service]
Type=forking
ExecStart=/usr/sbin/dovecot
PIDFile=/var/run/dovecot/dovecot/master.pid
ExecReload=/usr/bin/doveadm reload
ExecStop=/usr/bin/doveadm stop
PrivateTmp=true
NonBlocking=yes
# Enable this if your systemd is new enough to support it:
#ProtectSystem=full

I'm running ./configure with:

./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib 
--localstatedir=/var --mandir=/usr/share/man --infodir=/usr/share/info 
--with-moduledir=/usr/lib/dovecot/modules --disable-rpath 
--with-systemdsystemunitdir=auto --with-storages=maildir 
--with-ssl=openssl --with-solr --with-ioloop=best --with-stemmer 
--with-libwrap --with-lucene --without-sqlite --without-ldap 
--without-pgsql --disable-static


It's not an old dovecot.service file either - updated when I installed 
the build a few minutes ago.


By manually editing the systemd file above I was able to get the service up.

Reuben


Re: systemd changes in Git/Debian Auto-Builds

2016-02-21 Thread Thomas Leuxner
* aki.tu...@dovecot.fi  2016.02.21 12:43:

> This is fixed in
> https://github.com/dovecot/core/commit/22d75d47097ca83c6e824a5129d81e8f18fb589b

Thanks Aki. As all patches are in the source tree, I guess this is not included 
in Stephan's Auto-Build:

$ dpkg --unpack dovecot-core_2.2.21-1~auto+130_amd64.deb 

$ grep PID /lib/systemd/system/dovecot.service 
PIDFile=/var/run/dovecot/dovecot/master.pid

I manually edited the file afterwards and ran dpkg --configure which brought up 
the server.


signature.asc
Description: Digital signature


Re: systemd changes in Git/Debian Auto-Builds

2016-02-21 Thread aki . tuomi

> On February 21, 2016 at 11:03 AM Thomas Leuxner  wrote:
> 
> 
> Not sure if the issue is limited to the Debian Auto-Builds, but after the
> latest commits an update of the packages fails:
> 
> https://github.com/dovecot/core/commit/53cc71cae88ee81fd7eae47aed743496f8c884a2
> 
> Feb 21 07:31:22 nihlus dovecot: master: Dovecot v2.2.devel (950a6e6) starting
> up for imap, lmtp
> Feb 21 07:31:22 nihlus systemd[1]: PID file
> /var/run/dovecot/dovecot/master.pid not readable (yet?) after start.
> 
> The PID-File seems to be expected under yet another sub-dir of
> /var/run/dovecot.
> 
> Regards
> Thomas

Hi, 

This is fixed in
https://github.com/dovecot/core/commit/22d75d47097ca83c6e824a5129d81e8f18fb589b

---
Aki Tuomi