[pve-devel] [PatchV2 pve-manager 1/3] Add check if ceph is managed by systemd.
Alexandre DERUMIER
aderumier at odiso.com
Wed May 25 12:15:01 CEST 2016
>>Isn't there an simpler test for that? I do not want
>>to run external command for such test.
In my previous patch, I check
if(-f "/lib/systemd/system/ceph-osd at .service") {
https://git.proxmox.com/?p=pve-manager.git;a=blobdiff;f=PVE/CephTools.pm;h=c7749bb738cabe51ac482e5f2bcec7ad093a0aa9;hp=ec91f442c90af175ddcaebd6a9d85bf83b3eaf69;hb=255d078cb44fdebae1c655999fa0de1c344dffc8;hpb=7cf096674a6f31d02e37e907821541cad0c78904
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "Wolfgang Link" <w.link at proxmox.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mercredi 25 Mai 2016 11:09:36
Objet: Re: [pve-devel] [PatchV2 pve-manager 1/3] Add check if ceph is managed by systemd.
> +sub systemd_managed {
> +
> + my $version;
> + my $outfunc = sub {
> + my $line = shift;
> +
> + if ($line =~ m/ceph version (\d+).\d+.\d+/) {
> + $version = $1;
> + }
> + };
> +
> + run_command(['/usr/bin/ceph', '--version'], outfunc => $outfunc);
Isn't there an simpler test for that? I do not want
to run external command for such test.
_______________________________________________
pve-devel mailing list
pve-devel at pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list