[Bug 1179980] Re: nfs-common: gssd upstart config does not permit usage of startup options

Steve Langasek steve.langasek at canonical.com
Wed May 15 09:27:18 UTC 2013


On Wed, May 15, 2013 at 08:54:14AM -0000, Christopher Odenbach wrote:
> > This is a deliberate design decision.  /etc/default files are
> > discouraged whenever they aren't required to be supported for legacy
> > reasons, because they slow down the boot with gratuitous spawning of
> > shell processes.

> OK, I understand. The point is only that /etc/default/nfs-common gets
> already sourced in the init file once.

It gets sourced in the pre-start script, which already has to be a script.
Using this file for gssd options would require spawning another subshell in
place of the 'exec', which is what we want to avoid.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1179980

Title:
  nfs-common: gssd upstart config does not permit usage of startup
  options

Status in “nfs-utils” package in Ubuntu:
  Won't Fix

Bug description:
  Ubuntu Version: Quantal
  Package: nfs-common
  Version: 1:1.2.6-3ubuntu2

  Problem:
  The upstart init config for gssd does not permit any command line options to gssd. There are however some very important options for gssd which should be configurable in /etc/default/nfs-common, using a variable RPCGSSDOPTS.

  The following trivial patch fixes the problem:

  --- /afs/uni-paderborn.de/user/o/odenbach/gssd.conf	2013-05-14 16:30:08.000000000 +0200
  +++ gssd.conf	2013-05-14 16:22:04.000000000 +0200
  @@ -74,7 +74,13 @@
   	fi
   end script
   
  -exec rpc.gssd
  +script
  +	if [ -f "$DEFAULTFILE" ]; then
  +		. "$DEFAULTFILE"
  +	fi
  +
  +	exec rpc.gssd $RPCGSSDOPTS
  +end script
   
   post-stop script
   	if mountpoint -q "$PIPEFS_MOUNTPOINT"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1179980/+subscriptions




More information about the foundations-bugs mailing list