[pve-devel] [PatchV2 pve-manager 1/3] Add check if ceph is managed by systemd.
Dietmar Maurer
dietmar at proxmox.com
Wed May 25 11:09:36 CEST 2016
> +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.
More information about the pve-devel
mailing list