Skip to contentSkip to conversation

systemd: remove hard-coded pid file in xendriverdomain service

PATCH In review Wei Liu 3 participants 4 messages Jul 20, 2016 – Aug 2, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 systemd: remove hard-coded pid file in xendriverdomain service

Per the discussion in [0], the hard-coded pid file can be removed completely. Systemd has no trouble figuring out the pid of devd all by itself.

[0]: https://lists.xen.org/archives/html/xen-devel/2016-07/msg01393.html

---
Cc: Ian Jackson <[email protected]>
Cc: Rusty Bird <[email protected]>

---
 tools/hotplug/Linux/systemd/xendriverdomain.service.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tools/hotplug/Linux/systemd/xendriverdomain.service.in +1 -2
index c0cd454..85972b5 100644
@@ -7,8 +7,7 @@ ConditionVirtualization=xen
 
 [Service]
 Type=forking
-ExecStart=@sbindir@/xl devd --pidfile=/var/run/xldevd.pid
-PIDFile=/var/run/xldevd.pid
+ExecStart=@sbindir@/xl devd
 
 [Install]
 WantedBy=multi-user.target
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Acked-by on v1 1/1
#1 lore raw

Wei Liu writes ("[PATCH] systemd: remove hard-coded pid file in xendriverdomain service"):

Quoted 5 lines

Per the discussion in [0], the hard-coded pid file can be removed completely. Systemd has no trouble figuring out the pid of devd all by itself.

[0]: https://lists.xen.org/archives/html/xen-devel/2016-07/msg01393.html

I'm not qualified to have much of an opinion this but I'm happy to see it go in based on what I assume is a test report from Rusty Bird ?

On that basis,

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

author
#2 lore raw
Quoted 10 lines · Ian Jackson

Wei Liu writes ("[PATCH] systemd: remove hard-coded pid file in xendriverdomain service"):

Quoted 5 lines

Per the discussion in [0], the hard-coded pid file can be removed completely. Systemd has no trouble figuring out the pid of devd all by itself.

[0]: https://lists.xen.org/archives/html/xen-devel/2016-07/msg01393.html

I'm not qualified to have much of an opinion this but I'm happy to see it go in based on what I assume is a test report from Rusty Bird ?

No, it's not a test report.

Rusty Bird was the submitter of that xl devd unit file. I assumed he had experience of setting up xl devd without a pid file under systemd and did what he asked for.

Quoted 5 lines

On that basis,

Ian.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#3 lore raw

Wei Liu:

Quoted 12 lines · Ian Jackson
Quoted 10 lines

Wei Liu writes ("[PATCH] systemd: remove hard-coded pid file in xendriverdomain service"):

Quoted 5 lines

Per the discussion in [0], the hard-coded pid file can be removed completely. Systemd has no trouble figuring out the pid of devd all by itself.

[0]: https://lists.xen.org/archives/html/xen-devel/2016-07/msg01393.html

I'm not qualified to have much of an opinion this but I'm happy to see it go in based on what I assume is a test report from Rusty Bird ?

Quoted 5 lines

No, it's not a test report.

Rusty Bird was the submitter of that xl devd unit file. I assumed he had experience of setting up xl devd without a pid file under systemd and did what he asked for.

Yes, I tried it without a PID file and did not notice any issues.

Rusty

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel