Re: [vdagent-linux] systemd: Update path in unit file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

On Mon, Jan 14, 2019 at 06:28:28AM -0500, Frediano Ziglio wrote:
> > 
> > From: Christian Hesse <mail@xxxxxxxx>
> > 
> > When loading the unit file, systemd 240 logs:
> > 
> > systemd[1]: /usr/lib/systemd/system/spice-vdagentd.service:9: PIDFile=
> > references path below legacy directory /var/run/, updating
> > /var/run/spice-vdagentd/spice-vdagentd.pid →
> > /run/spice-vdagentd/spice-vdagentd.pid; please update the unit file
> > accordingly.
> > 
> > So update the path.
> > 
> > Signed-off-by: Christian Hesse <mail@xxxxxxxx>
> > ---
> >  data/spice-vdagentd.service | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/data/spice-vdagentd.service b/data/spice-vdagentd.service
> > index 365b2c1..9c70b30 100644
> > --- a/data/spice-vdagentd.service
> > +++ b/data/spice-vdagentd.service
> > @@ -7,7 +7,7 @@ Requires=spice-vdagentd.socket
> >  Type=forking
> >  EnvironmentFile=-/etc/sysconfig/spice-vdagentd
> >  ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS
> > -PIDFile=/var/run/spice-vdagentd/spice-vdagentd.pid
> > +PIDFile=/run/spice-vdagentd/spice-vdagentd.pid
> >  PrivateTmp=true
> >  Restart=on-failure
> >  
> 
> Isn't this breaking old systems?
> Maybe there's a way to get the proper directory for the system
> you are compiling?
> I cannot find an option with pkg-config and systemd/libsystemd.

I would say it's fine, systemd started using /run
in https://github.com/systemd/systemd/commit/2b583ce657
which is systemd 21 released 8 years ago.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]