Skip to content

Commit

Permalink
ceph: use setsid for service commands
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerdietmar committed Jan 24, 2014
1 parent 3f5368b commit cca4072
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PVE/CephTools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ sub setup_pve_symlinks {
}

sub ceph_service_cmd {
PVE::Tools::run_command(['service', 'ceph', '-c', $pve_ceph_cfgpath, @_]);
# ceph daemons does not call 'setsid', so we do that ourself
# (fork_worker send KILL to whole process group)
PVE::Tools::run_command(['setsid', 'service', 'ceph', '-c', $pve_ceph_cfgpath, @_]);
}

sub list_disks {
Expand Down

0 comments on commit cca4072

Please sign in to comment.