Package: restartd
Version: 0.2.2
Severity: important

restartd only starts the 1st non-running process in /etc/restartd.conf,
and ignores all following lines.

Details:
I have 4 entries in /etc/restartd.conf, like:
myprocess1 ".*myprocess1" "su -c /home/user/myprocess1.sh user"
myprocess2 ".*myprocess2" "su -c /home/user/myprocess2.sh user"
myprocess3 ".*myprocess3" "su -c /home/user/myprocess3.sh user"
myprocess4 ".*myprocess4" "su -c /home/user/myprocess4.sh user"

If I start restartd, it logs:
  restartd: Config file has been read. Found 4 process to check.
  restartd: myprocess1 is NOT running, executing 'su -c 
/home/user/myprocess1.sh user'
and starts myprocess1, but ignores myprocess2, 3 and 4.

When I then use /etc/init.d/restartd restart, it starts the next process
(myprocess2):
  restartd: Config file has been read. Found 4 process to check.
  restartd: myprocess2 is NOT running, executing 'su -c 
/home/user/myprocess2.sh user'

So, I have to restart restartd 3 times to make all 4 processes work.

 
-- System Information:
Debian Release: 6.0.8
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages restartd depends on:
ii  libc6                         2.11.3-4   Embedded GNU C Library: Shared lib

restartd recommends no packages.

restartd suggests no packages.

-- Configuration Files:
/etc/restartd.conf changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to