[Bug 1179980] Re: nfs-common: gssd upstart config does not permit usage of startup options
Christopher Odenbach
odenbach at uni-paderborn.de
Wed May 15 08:54:14 UTC 2013
Hi,
> 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.
> If you need to override the 'exec' stanza of
> /etc/init/gssd.conf, the recommended/supported way to do that is with an
> upstart override:
>
> # echo 'exec rpc.gssd -option1 -option2' > /etc/init/gssd.override
Excellent - did not now that.
Thanks,
Christopher
--
======================================================
Dipl.-Ing. Christopher Odenbach
Zentrum fuer Informations- und Medientechnologien
Universitaet Paderborn
Raum N5.311
odenbach at uni-paderborn.de
Tel.: +49 5251 60 5315
======================================================
--
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