Skip to content

Commit

Permalink
nfs: run a dedicated dbus daemon for nfs-ganesha
Browse files Browse the repository at this point in the history
This runs a dedicated dbus daemon for nfs-ganesha in order to avoid
using the host dbus socket so we don't have to launch nfs-ganesha with
--privileged option.

Related ceph-ansible PR: ceph/ceph-ansible#4760

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1725254

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit 9d78f73)
  • Loading branch information
guits authored and dsavineau committed Nov 21, 2019
1 parent c5f02eb commit 51ff5c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/daemon/start_nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ function start_rpc {

}

function start_dbus {
mkdir -p /run/dbus
dbus-daemon --system
}

function start_nfs {
get_config
check_config

# Init RPC
start_rpc
# Start dbus daemon
start_dbus

if [ ! -e "$RGW_KEYRING" ]; then

Expand All @@ -33,6 +40,7 @@ function start_nfs {
# create ganesha log directory since the package does not create it
mkdir -p /var/log/ganesha/


log "SUCCESS"
# start ganesha, logging both to STDOUT and to the configured location
exec /usr/bin/ganesha.nfsd "${GANESHA_OPTIONS[@]}" -F -L STDOUT "${GANESHA_EPOCH}"
Expand Down

0 comments on commit 51ff5c8

Please sign in to comment.