Message ID | orzjfqth21.fsf@free.home (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/init-ceph.in b/src/init-ceph.in index 95723b0..cc3c3c7 100644 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -277,9 +277,9 @@ for name in $what; do [ -n "$max_open_files" ] && files="ulimit -n $max_open_files;" if [ $SYSTEMD -eq 1 ]; then - cmd="systemd-run -r bash -c '$files $cmd --cluster $cluster -f'" + cmd="systemd-run -r bash -c '$files exec $cmd --cluster $cluster -f'" else - cmd="$files $wrap $cmd --cluster $cluster $runmode" + cmd="$files exec $wrap $cmd --cluster $cluster $runmode" fi if [ $dofsmount -eq 1 ] && [ -n "$fs_devs" ]; then
Since with systemd we want to start daemons in foreground, adding an exec before the daemon (or wrapper) name saves us a running shell just waiting for the daemon to complete. There's no reason to not do so even when not using systemd, so, done... Signed-off-by: Alexandre Oliva <oliva@gnu.org> --- src/init-ceph.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)