Usage of daemon() function in initscript generates error after upgrading to RHEL 6.6

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.