Usage of daemon() function in initscript generates error after upgrading to RHEL 6.6
Issue
- After updating to RHEL6.6, we are now seeing errors from our initscript (/etc/init.d/xxx) when it calls the
daemon()function.
Starting xxx: /usr/bin/dirname: extra operand `&.pid'
Try `/usr/bin/dirname --help' for more information.
The daemon is invoked as follows:
daemon --user "$xxx_USER" $"$SCRIPT </dev/null &>/dev/null &"
Environment
- Red Hat Enterprise Linux (RHEL) 6.6
- initscripts-9.03.46-1.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.