Package: smartmontools Version: 5.38-2 Severity: serious The smartmontools init script starts the smartd even if it is already running:
rem:~# ps xauf | grep -i 'smar[t]' root 27750 0.0 0.1 4188 816 ? S 12:16 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid rem:~# env -i /etc/init.d/smartmontools start Starting S.M.A.R.T. daemon: smartd. rem:~# ps xauf | grep -i 'smar[t]' root 27750 0.0 0.1 4188 816 ? S 12:16 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27777 0.0 0.1 4188 820 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid rem:~# env -i /etc/init.d/smartmontools start Starting S.M.A.R.T. daemon: smartd. rem:~# ps xauf | grep -i 'smar[t]' root 27750 0.0 0.1 4188 816 ? S 12:16 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27777 0.0 0.1 4188 820 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27784 0.0 0.1 4188 816 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid rem:~# env -i /etc/init.d/smartmontools start Starting S.M.A.R.T. daemon: smartd. rem:~# ps xauf | grep -i 'smar[t]' root 27750 0.0 0.1 4188 816 ? S 12:16 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27777 0.0 0.1 4188 820 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27784 0.0 0.1 4188 816 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid root 27791 0.0 0.1 4188 816 ? S 12:18 0:00 /usr/sbin/smartd --pidfile /var/run/smartd.pid You probably do not want to rm -f the pidfile just before you ask start-stop-daemon to start the thing. And then you want to exit 0 if the thing is already running, not exit 1. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org