[Bug 929848] [NEW] init script has hard coded chown
Paul
paul at fuller.name
Thu Feb 9 21:59:47 UTC 2012
Public bug reported:
I changed the user the nagios runs under and could not get the services
to start; so after looking around I found that the init script was
chowning /var/run/nagios3 directory.
/etc/init.d/nagios3
start () {
DIRECTORY=$(dirname $THEPIDFILE)
[ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
chown nagios:nagios $DIRECTORY
Change:
/etc/init.d/nagios3
start () {
DIRECTORY=$(dirname $THEPIDFILE)
[ ! -d $DIRECTORY ] && mkdir -p $DIRECTORY
chown "$(get_config nagios_user)":"$(get_config nagios_group)" $DIRECTORY
** Affects: nagios3 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios3 in Ubuntu.
https://bugs.launchpad.net/bugs/929848
Title:
init script has hard coded chown
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios3/+bug/929848/+subscriptions
More information about the Ubuntu-server-bugs
mailing list