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

Alexandre DERUMIER aderumier at odiso.com
Tue May 17 08:54:51 CEST 2016


>>and setsid is still required here? 

oh, sorry, I have forgot to remove it.

It's working fine without setsid

I'll resend a v2

----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Mardi 17 Mai 2016 08:11:05
Objet: Re: [pve-devel] [PATCH] cephserver : add systemd support

> + if(-f "/lib/systemd/system/ceph-osd at .service") { 
> + if ($service =~ m/^(\S+)\.(\d+)$/) { 
> + $service = "ceph-$1@$2"; 
> + PVE::Tools::run_command(['setsid', '/bin/systemctl', $action, 
> $service]); 


and setsid is still required here? 



More information about the pve-devel mailing list