postfix rc.d script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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.negovanovic@xxxxxxxxx


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux