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

Re: Reducing downtime on system critical services



Ben Collins <bcollins@debian.org> writes:

> The problem is that right now, start-stop-daemon implicitly checks to make
> sure that the inode of the file (/usr/sbin/slapd) matches that of the PID
> is about to kill (/proc/<pid>/exe).

Only if you give it the "--exec" argument. It does exactly what you
instruct it to do.

> This makes it impossible to use in this situation, and I myself have
> had to hand write "foo=`cat /var/run/slapd.pid`\nkill -TERM $foo"
> into my init script.

        start-stop-daemon --stop --pid-file /var/run/slapd.pid

can be used, too.

-- 
Robbe


Reply to: