On Thu, 5 Apr 2018 07:07:06 -0400 (EDT), Wietse Venema stated:
>Bastian Blank:
>> On Wed, Apr 04, 2018 at 08:56:46PM -0400, Wietse Venema wrote:
>> > That may be so, but why does the lame Linux kernel silently ignore
>> > the kill() call instead of properly returning an error.
>>
>> The
Thank you both for verifying that PID-1 mode now works as expected.
It saved me a few hours to set stuff up and do it myself; my time
for Postfix is very limited.
Wietse
Eray Aslan:
On Wed, Apr 04, 2018 at 07:19:56PM -0400, Wietse Venema wrote:
I also need you guys to verify that with the Postfix master running
as PID=1, "docker stop" will no longer leave the master daemon
running until Docker times out and forcibly terminates everything.
By default, "docker
Bastian Blank:
> On Wed, Apr 04, 2018 at 08:56:46PM -0400, Wietse Venema wrote:
> > That may be so, but why does the lame Linux kernel silently ignore
> > the kill() call instead of properly returning an error.
>
> The signal is ignored the same way as if someone had called
> | signal(SIGFOO,
On Wed, Apr 04, 2018 at 08:56:46PM -0400, Wietse Venema wrote:
> That may be so, but why does the lame Linux kernel silently ignore
> the kill() call instead of properly returning an error.
The signal is ignored the same way as if someone had called
| signal(SIGFOO, SIG_IGN)
Bastian
--
You!
>That may be so, but why does the lame Linux kernel silently ignore
>the kill() call instead of properly returning an error.
>
> Wietse
:) I don't write the code, just reporting the bad news!
I think however the reasoning is as follows: clearly a user-mode process
can send a signal to
HAKNER J:
> > > > >>> I'd appreciate it if someone could verify that this will run the
> > > > >>> master daemon with PID 1, and that 'postfix stop' in the container
> > > > >>> will stop the master daemon. If it doesn't, then Linux does weird
> > > > >>> stuff with PID 1 processes.
>
> Correct.
> > > >>> I'd appreciate it if someone could verify that this will run the
> > > >>> master daemon with PID 1, and that 'postfix stop' in the container
> > > >>> will stop the master daemon. If it doesn't, then Linux does weird
> > > >>> stuff with PID 1 processes.
Correct. The Linux kernel
Wietse Venema:
> Wietse Venema:
> > A. Schulze:
> > > Am 04.04.2018 um 19:08 schrieb Wietse Venema:
> > > > Eray Aslan:
> > > >> On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
> > > >>> I updated both the postfix-script file and the master daemon.
> > > >>>
> > > >>> I'd appreciate
Wietse Venema:
> A. Schulze:
> > Am 04.04.2018 um 19:08 schrieb Wietse Venema:
> > > Eray Aslan:
> > >> On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
> > >>> I updated both the postfix-script file and the master daemon.
> > >>>
> > >>> I'd appreciate it if someone could verify
A. Schulze:
> Am 04.04.2018 um 19:08 schrieb Wietse Venema:
> > Eray Aslan:
> >> On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
> >>> I updated both the postfix-script file and the master daemon.
> >>>
> >>> I'd appreciate it if someone could verify that this will run the
> >>>
Am 04.04.2018 um 19:08 schrieb Wietse Venema:
> Eray Aslan:
>> On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
>>> I updated both the postfix-script file and the master daemon.
>>>
>>> I'd appreciate it if someone could verify that this will run the
>>> master daemon with PID 1,
Viktor Dukhovni:
>
>
> > On Apr 4, 2018, at 1:31 PM, Wietse Venema wrote:
> >
> > According to RTFM, the exit() function does not return so it can't 'fail'.
> >
> > FreeBSD:
> > The exit() and _Exit() functions never return.
> > The _exit() system call can never
> On Apr 4, 2018, at 1:31 PM, Wietse Venema wrote:
>
> According to RTFM, the exit() function does not return so it can't 'fail'.
>
> FreeBSD:
> The exit() and _Exit() functions never return.
> The _exit() system call can never return.
> Linux:
> The exit()
Wietse Venema:
> Just for the heck of it, can you replace in src/master/master_sig.c
> this code:
>
>if (kill(pid, SIGKILL) < 0)
>msg_fatal("%s: kill myself: %m", myname);
>
> With this code:
>
>exit(0);
>
> And see if that fixes the PID=1 behavior?
Viktor Dukhovni:
> Perhaps
> On Apr 4, 2018, at 1:08 PM, Wietse Venema wrote:
>
> Just for the heck of it, can you replace in src/master/master_sig.c
> this code:
>
>if (kill(pid, SIGKILL) < 0)
>msg_fatal("%s: kill myself: %m", myname);
>
> With this code:
>
>exit(0);
>
> And
Eray Aslan:
> On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
> > I updated both the postfix-script file and the master daemon.
> >
> > I'd appreciate it if someone could verify that this will run the
> > master daemon with PID 1, and that 'postfix stop' in the container
> > will
On Tue, Apr 03, 2018 at 07:46:42PM -0400, Wietse Venema wrote:
> I updated both the postfix-script file and the master daemon.
>
> I'd appreciate it if someone could verify that this will run the
> master daemon with PID 1, and that 'postfix stop' in the container
> will stop the master daemon.
On 03.04.2018 02:37, John Stoffel wrote:
> But... isn't discourse running in it's own container, so you'd be
> spinning up postfix it another container...
John Allen asked "what is the attraction of docker", and I was just
mucking about with a new Discourse installation, so I mentioned this as
Wietse Venema:
I'd appreciate it if someone could verify that this will run the
master daemon with PID 1, and that 'postfix stop' in the container
will stop the master daemon.
I'll verify that in the next days ...
Andreas
> > anyway, the patched version run master as PID 1. fine!
>
> Good enough for proof of concept. The only misfeature is that it
> passes -d to all child processes. I will add a new flag that does
> less than '-d', only the things that containers need.
postfix-3.4-20180403 will try to run the
On Mon, Apr 02, 2018 at 01:21:41PM -0400, Viktor Dukhovni wrote:
> A simple minder process that propagates signal to its child process
> would probably solve this issue.
On a somewhat related note, dumb-init[1] and tini[2] are populer
choices to run as pid 1 inside containers. Perhaps, they
> "Ralph" == Ralph Seichter writes:
Ralph> On 02.04.2018 19:55, John Allen wrote:
>> what is the attraction of docker? What does it do that I might need?
Ralph> You might need it because a Docker container is the recommended method
Ralph> to deploy Discourse,
A. Schulze:
>
>
> Am 02.04.2018 um 19:30 schrieb Wietse Venema:
> > - "") exec $daemon_directory/master
> > + "") exec $daemon_directory/master -d
> > + $FATAL "could not start-fg $daemon_directory/master"
>
> version 3.3.0 don't contain the "exec
Am 02.04.2018 um 19:30 schrieb Wietse Venema:
> - "") exec $daemon_directory/master
> + "") exec $daemon_directory/master -d
> + $FATAL "could not start-fg $daemon_directory/master"
version 3.3.0 don't contain the "exec $daemon_directory/master" but only
On 02.04.2018 19:55, John Allen wrote:
> what is the attraction of docker? What does it do that I might need?
You might need it because a Docker container is the recommended method
to deploy Discourse, which I am doing right now... SCNR. ;-)
-Ralph
Dumb question I suspect - what is the attraction of docker? What does it do
that I might need?
JohnA
On April 2, 2018 1:22:29 PM Viktor Dukhovni wrote:
> On Apr 2, 2018, at 12:42 PM, Wietse Venema wrote:
>
> To make the master 'pid 1' one
Wietse Venema:
> To make the master 'pid 1' one would have to use 'exec
> $daemon_directory/master' in the 'postfix-script' file.
>
> However, that fails on every system that I know:
>
> postfix-master[xxx]: fatal: unable to set session and process group ID:
> Operation not permitted
Just
> On Apr 2, 2018, at 12:42 PM, Wietse Venema wrote:
>
> To make the master 'pid 1' one would have to use 'exec
> $daemon_directory/master' in the 'postfix-script' file.
>
> However, that fails on every system that I know:
>
>postfix-master[xxx]: fatal: unable to set
A. Schulze:
>
>
> Am 02.04.2018 um 16:10 schrieb Michael Segel:
> > Has anyone successfully implemented a Kubernetes / Docker container setup
> > for Postfix/Dovecot?
>
> it works in my lab environment.
>
> $ docker-compuse up -d postfix
> Creating dockerpostfix_postfix_1 ... done
> $
Am 02.04.2018 um 16:10 schrieb Michael Segel:
> Has anyone successfully implemented a Kubernetes / Docker container setup for
> Postfix/Dovecot?
it works in my lab environment.
$ docker-compuse up -d postfix
Creating dockerpostfix_postfix_1 ... done
$ docker-compose exec postfix /bin/bash
> >> On 12/19/2017 05:25 AM, Wietse Venema wrote:
> >>> As for forgrounding, this must happen only after the 'postfix
> >>> check' sanity checks and repairs complete sucessfully. Running a
> >>> 'bare' master daemon would violate design assumptions. So this
> >>> will require a new 'postfix'
Hi,
Jumping late in to this thread…
Has anyone successfully implemented a Kubernetes / Docker container setup for
Postfix/Dovecot?
> On Dec 19, 2017, at 9:06 AM, Wietse Venema wrote:
>
> Stephen Satchell:
>> On 12/19/2017 05:25 AM, Wietse Venema wrote:
>>> As for
Eray Aslan:
> On Tue, Dec 19, 2017 at 10:53:38AM -0500, Wietse Venema wrote:
> > Postfix will bail out if it knows that the queue or data directory
> > are shared, because that can result in data corruption.
> >
> > How do I enforce that constraint when directories are imported into
> > a
On Tue, Dec 19, 2017 at 10:53:38AM -0500, Wietse Venema wrote:
> Postfix will bail out if it knows that the queue or data directory
> are shared, because that can result in data corruption.
>
> How do I enforce that constraint when directories are imported into
> a container from the host?
I
Viktor Dukhovni:
>
>
> > On Dec 19, 2017, at 10:19 AM, Eray Aslan wrote:
> >
> > Usually sending log output to console is the preferred approach. If we
> > cannot do it natively, having syslog daemon write to console (in
> > addition to local log file?) looks like a better
> On Dec 19, 2017, at 10:19 AM, Eray Aslan wrote:
>
> Usually sending log output to console is the preferred approach. If we
> cannot do it natively, having syslog daemon write to console (in
> addition to local log file?) looks like a better option than importing
> sockets
Eray Aslan:
> On Tue, Dec 19, 2017 at 10:01:53AM -0500, Wietse Venema wrote:
> > I suppose one approach is to make a Postfix container disposable,
> > i.e. a container is never updated with a new Postfix version, but
> > it is replaced with a newer one
>
> That is the common Docker approach.
On Tue, Dec 19, 2017 at 10:01:53AM -0500, Wietse Venema wrote:
> I suppose one approach is to make a Postfix container disposable,
> i.e. a container is never updated with a new Postfix version, but
> it is replaced with a newer one
That is the common Docker approach. Images are immutable.
>
Stephen Satchell:
> On 12/19/2017 05:25 AM, Wietse Venema wrote:
> > As for forgrounding, this must happen only after the 'postfix
> > check' sanity checks and repairs complete sucessfully. Running a
> > 'bare' master daemon would violate design assumptions. So this
> > will require a new
Wietse Venema:
> I think that Docker fundamentally wants one service instance per
> container. On Postfix service instance translates into one queue,
> for example submission+smtp sharing one queue, similar to http+https
> sharing one website. Let's not fight the Docker approach, and leave
>
On 12/19/2017 05:25 AM, Wietse Venema wrote:
As for forgrounding, this must happen only after the 'postfix
check' sanity checks and repairs complete sucessfully. Running a
'bare' master daemon would violate design assumptions. So this
will require a new 'postfix' subcommand that starts exactly
Viktor Dukhovni:
>
>
> > On Dec 18, 2017, at 9:09 PM, Wietse Venema wrote:
> >
> > The Docker approach complicates Postfix multi-instance support so
> > we may have to forego that. What remains is to determine that Docker
> > shutdown, i.e. yanking the container from
> On Dec 18, 2017, at 9:09 PM, Wietse Venema wrote:
>
> The Docker approach complicates Postfix multi-instance support so
> we may have to forego that. What remains is to determine that Docker
> shutdown, i.e. yanking the container from under a running Postfix
> system,
Dennis Carr:
> On Tue, 26 Sep 2017 21:21:56 +0200
> A Debian User wrote:
>
> > Hello,
> >
> > I am currently having trouble to get postfix running in a Docker
> > Container.
> >
> > Docker requires a Process to stay alive and in foreground at ID 1, if
> > not the
On Tue, 26 Sep 2017 21:21:56 +0200
A Debian User wrote:
> Hello,
>
> I am currently having trouble to get postfix running in a Docker
> Container.
>
> Docker requires a Process to stay alive and in foreground at ID 1, if
> not the container dies.
I don't know
> On Sep 26, 2017, at 3:21 PM, A Debian User
> wrote:
>
> Hello,
>
> I am currently having trouble to get postfix running in a Docker Container.
>
> Docker requires a Process to stay alive and in foreground at ID 1, if not the
> container dies.
>
> Is there
A Debian User:
> Hello,
>
> I am currently having trouble to get postfix running in a Docker Container.
>
> Docker requires a Process to stay alive and in foreground at ID 1, if
> not the container dies.
>
> Is there any way to make it stay in the foreground, like it is possible
> for instance
Hello,
I am currently having trouble to get postfix running in a Docker Container.
Docker requires a Process to stay alive and in foreground at ID 1, if
not the container dies.
Is there any way to make it stay in the foreground, like it is possible
for instance with _/apachectl -DFOREGROUND/_
49 matches
Mail list logo