Re: [arch-general] postfix rc.d script

2011-05-18 Thread Milos Negovanovic
On Thu, May 12, 2011 at 11:18:57AM +0200, Gaetan Bisson wrote:
 [2011-05-12 09:45:55 +0100] Milos Negovanovic:
  On my workstation I have LXC (linux containers) setup and postfix
  rc.d script does not work on the host. I think reason for this is the
  way it gets the PID of the master process:
  
  PID=$(pidof -o %PPID /usr/lib/postfix/master)
 
 Using pidof is standard, but we could switch to extracting the PID from
 
   /var/lib/postfix/master.lock
 
 (It's just one option that I can think of right now.)
 
 Could you open a bug report for this issue?

Sorry for the late reply ... done:

https://bugs.archlinux.org/task/24340

Regards
-- 
Milos Negovanovic
milos.negovano...@gmail.com


[arch-general] postfix rc.d script

2011-05-12 Thread Milos Negovanovic
Hi all,

On my workstation I have LXC (linux containers) setup and postfix
rc.d script does not work on the host. I think reason for this is the
way it gets the PID of the master process:

PID=$(pidof -o %PPID /usr/lib/postfix/master)

On my host this value is:

pidof -o %PPID /usr/lib/postfix/master
29187 27623 881

As you can see it catches all master processes running in all LXC
containers! Needless to say rc.d script doesn't work. Whats the idea
behind using pidof? Storing the PID in /var/run is not an option?

-- 
Milos Negovanovic
milos.negovano...@gmail.com


Re: [arch-general] postfix rc.d script

2011-05-12 Thread Gaetan Bisson
[2011-05-12 09:45:55 +0100] Milos Negovanovic:
 On my workstation I have LXC (linux containers) setup and postfix
 rc.d script does not work on the host. I think reason for this is the
 way it gets the PID of the master process:
 
 PID=$(pidof -o %PPID /usr/lib/postfix/master)

Using pidof is standard, but we could switch to extracting the PID from

/var/lib/postfix/master.lock

(It's just one option that I can think of right now.)

Could you open a bug report for this issue?

-- 
Gaetan