> On Apr 2, 2018, at 12:42 PM, Wietse Venema <wie...@porcupine.org> 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 session and process group ID: > Operation not permitted
A simple minder process that propagates signal to its child process would probably solve this issue. sigprop cmd [args] run "cmd" as a child process, catch and propagate all signals that can be caught to the child, exit with the child's exit code. Because "sigprop" has just one child it would not need a process group, ... it would just kill the foreground master process. With that out of the way, perhaps the solution then is for the foreground master process to be that minder, running a child master process to do all the work, with the parent managing just the one child, this avoids the need for a separate (if general purpose) minder. A violation of the Unix philosophy perhaps, but perhaps a reasonable approach? -- Viktor.