From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Fischer To: development@lists.ipfire.org Subject: Wrong 'pathname to specified program' for 'killproc' in some init-files!? Date: Sun, 23 Apr 2017 19:20:59 +0200 Message-ID: <40bc5f2c-0e8f-44e1-e6f3-ff0a61b8cd07@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6547400226874283271==" List-Id: --===============6547400226874283271== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, while searching for something else I found this: Usage for the 'killproc'-function in '/etc/init.d/'-files should be (cited): "# Function - killproc [-p pidfile] pathname [signal] # # Purpose: # # Inputs: -p pidfile, uses the specified pidfile # pathname, pathname to the specified program ..." But in the 'init'-files for 'dhcp', 'dhcrelay' and 'rndg' there is the PROGRAMname and in 'snort'-file '/var/run' is given. The latter leads to an error (FAIL) if both 'green0' and 'red0' are enabled and should be both stopped: ... killproc -p /var/run/dhcpd.pid /usr/sbin/dhcpd ^^^^^^ ... killproc -p /var/run/dhcrelay.pid /usr/sbin/dhcrelay ^^^^^^^^^ ... killproc -p /var/run/rngd.pid /usr/sbin/rngd ^^^^^ ... killproc -p /var/run/snort_$DEVICE.pid /var/run ^^^^^^^^ IMHO, all these should be changed to "pathname to the specified program" as cited above ('/usr/sbin'). Can anyone please confirm? Best, Matthias --===============6547400226874283271==--