[pve-devel] [PATCH] cephserver : add systemd support V2

Alexandre DERUMIER aderumier at odiso.com
Tue May 17 18:43:11 CEST 2016


Ok, 

they are a bug in my patch

+        if ($service && $service =~ m/^(mon|osd|mds|radosgw)(\.([A-Za-z0-9]{1,32}))?$/) {
+            $service = $3 ? "ceph-$1\@$3" : "ceph-$1.target";


in case of first mon creation, the $service = "mon.0"

but the "$3 ?" test  don't work if value is 0.

That's why it's return the ceph-mon.target, instead ceph-mon at 0  

I'll rework my patch.


(.target are used to stop/start all services)

----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "Wolfgang Bumiller" <w.bumiller at proxmox.com>, "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 17 Mai 2016 16:57:29
Objet: Re: [pve-devel] [PATCH] cephserver : add systemd support V2

OK, I did a hard reset to the previous commit... 




More information about the pve-devel mailing list