mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 09:22:03 +00:00
Enable service for ceph monitor.
We do not use the ceph.service what normally start ceph-mon, so we have to ensure ceph-mon is enabled.
This commit is contained in:
parent
ab1213cc50
commit
19bada0c96
@ -948,6 +948,12 @@ __PACKAGE__->register_method ({
|
|||||||
PVE::CephTools::write_ceph_config($cfg);
|
PVE::CephTools::write_ceph_config($cfg);
|
||||||
|
|
||||||
PVE::CephTools::ceph_service_cmd('start', $monsection);
|
PVE::CephTools::ceph_service_cmd('start', $monsection);
|
||||||
|
|
||||||
|
if ($systemd_managed) {
|
||||||
|
#to ensure we have the correct startup order.
|
||||||
|
eval { PVE::Tools::run_command(['/bin/systemctl', 'enable', "ceph-mon\@${monid}.service"]); };
|
||||||
|
warn "Enable ceph-mon\@${monid}.service manually"if $@;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return $rpcenv->fork_worker('cephcreatemon', $monsection, $authuser, $worker);
|
return $rpcenv->fork_worker('cephcreatemon', $monsection, $authuser, $worker);
|
||||||
|
Loading…
Reference in New Issue
Block a user