From: Matthias Fischer <matthias.fischer@ipfire.org>
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 [thread overview]
Message-ID: <40bc5f2c-0e8f-44e1-e6f3-ff0a61b8cd07@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]
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
next reply other threads:[~2017-04-23 17:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-23 17:20 Matthias Fischer [this message]
2017-04-24 10:24 ` Michael Tremer
2017-04-24 11:57 ` Matthias Fischer
2017-04-24 14:31 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40bc5f2c-0e8f-44e1-e6f3-ff0a61b8cd07@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox