On 13/07/2021 14:23, ToddAndMargo via users wrote:
On 7/12/21 11:09 PM, Ed Greshko wrote:
On 13/07/2021 13:56, ToddAndMargo via users wrote:
On 7/12/21 10:44 PM, ToddAndMargo via users wrote:
Hi Ed,

I see the set up for the service and the socket.

What I am trying to figure out is why the socket
is not being triggered to start the service.

What on

    ListenStream=/run/spice-vdagentd/spice-vdagent-sock

is the socket missing?


I do not understand the question.

In my host and all my other VM's, spice-vdagentd.service
is running far before ~/.bashrc and far before logging in.
I happens seconds after the kernel is selected

That is because some other desktops will do that.  KDE doesn't




That is the socket that /usr/bin/spice-vdagent binds to when run from .bashrc, 
the --user systemd unit,
or from konsole.

The action of spice-vdagent binding to the socket then triggers the 
spice-vdagentd (daemon).

It doesn't though

In KDE, spice-vdagentd.socket is not hearing
spice-vdagent-sock to trugger spice-vdagentd.service.

"OR" the spice-vdagent is never happening


OK....  Try this simple test.....

Reboot the KDE system.  Then login via an SSH session.  Not a graphical session.

You should then see....

egreshko@f34k2 ~]$ uptime
 14:31:23 up 0 min,  1 user,  load average: 1.73, 0.47, 0.16

[egreshko@f34k2 ~]$ ps -eaf | grep spice

I then send something to the socket and Ctrl-C to end the ncat session.

egreshko    1854    1828  0 14:31 pts/0    00:00:00 grep --color=auto spice
[egreshko@f34k2 ~]$ ncat -U /run/spice-vdagentd/spice-vdagent-sock
0.21.0I ENTER SOMETHING
^C

[egreshko@f34k2 ~]$ ps -eaf | grep spice
root        1859       1  0 14:32 ?        00:00:00 /usr/sbin/spice-vdagentd

Now the daemon is running, triggered by the ncat communication.  And we se....

[egreshko@f34k2 ~]$ systemctl --no-pager -l status spice-vdagentd.service
● spice-vdagentd.service - Agent daemon for Spice guests
     Loaded: loaded (/usr/lib/systemd/system/spice-vdagentd.service; indirect; 
vendor preset: enabled)
     Active: active (running) since Tue 2021-07-13 14:32:07 CST; 39s ago
TriggeredBy: ● spice-vdagentd.socket
    Process: 1858 ExecStart=/usr/sbin/spice-vdagentd $SPICE_VDAGENTD_EXTRA_ARGS 
(code=exited, status=0/SUCCESS)
   Main PID: 1859 (spice-vdagentd)
      Tasks: 3 (limit: 2328)
     Memory: 892.0K
        CPU: 27ms
     CGroup: /system.slice/spice-vdagentd.service
             └─1859 /usr/sbin/spice-vdagentd

Jul 13 14:32:07 f34k2.greshko.com systemd[1]: Starting Agent daemon for Spice 
guests...
Jul 13 14:32:07 f34k2.greshko.com systemd[1]: Started Agent daemon for Spice 
guests.
Jul 13 14:32:19 f34k2.greshko.com spice-vdagentd[1859]: unknown message from 
vdagent: 1313153097, ignoring

Because the daemon doesn't know what to do with "I ENTER SOMETHING.

--
Remind me to ignore comments which aren't germane to the thread.

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to