Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 22:45 +0200, Andrei POPESCU wrote: > On Vi, 05 mar 21, 12:53:24, Jim Popovitch wrote: > > Right now I can't get this to work: > > > > ~$ systemctl --user enable Test.service > > Failed to connect to bus: No such file or directory > > To save you some head banging after you

Re: user unit file

2021-03-05 Thread Andrei POPESCU
On Vi, 05 mar 21, 12:53:24, Jim Popovitch wrote: > > Right now I can't get this to work: > > ~$ systemctl --user enable Test.service > Failed to connect to bus: No such file or directory To save you some head banging after you fix this... > ~$ cat ~/.config/systemd/user/Test.service > [Unit] >

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 14:29 -0500, Greg Wooledge wrote: > Jim Popovitch (j...@k4vqc.com) wrote: > > On Fri, 2021-03-05 at 14:21 -0500, Greg Wooledge wrote: > > > Jim Popovitch (j...@k4vqc.com) wrote: > > > > Ugh. So the solution seems to be to add UsePAM to sshd just to make > > > > systemd work.

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 14:16 -0500, Jim Popovitch wrote: > On Fri, 2021-03-05 at 13:35 -0500, Greg Wooledge wrote: > > Jim Popovitch (j...@k4vqc.com) wrote: > > > It's a VPS server, I ssh'ed in. No GUI, minimal install to test systemd > > > user unit files. > > > > Apparently you need to

Re: user unit file

2021-03-05 Thread Greg Wooledge
Jim Popovitch (j...@k4vqc.com) wrote: > On Fri, 2021-03-05 at 14:21 -0500, Greg Wooledge wrote: > > Jim Popovitch (j...@k4vqc.com) wrote: > > > Ugh. So the solution seems to be to add UsePAM to sshd just to make > > > systemd work. Not sure that I can get that approved, but I will see. > > > >

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 14:21 -0500, Greg Wooledge wrote: > Jim Popovitch (j...@k4vqc.com) wrote: > > Ugh. So the solution seems to be to add UsePAM to sshd just to make > > systemd work. Not sure that I can get that approved, but I will see. > > This sounds like an X-Y problem. What are you

Re: user unit file

2021-03-05 Thread Greg Wooledge
Jim Popovitch (j...@k4vqc.com) wrote: > Ugh. So the solution seems to be to add UsePAM to sshd just to make > systemd work. Not sure that I can get that approved, but I will see. This sounds like an X-Y problem. What are you actually trying to do?

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 13:35 -0500, Greg Wooledge wrote: > Jim Popovitch (j...@k4vqc.com) wrote: > > It's a VPS server, I ssh'ed in. No GUI, minimal install to test systemd > > user unit files. > > Apparently you need to configure sshd to use PAM. > > > bob@sbc:~$ ps -ef|grep dbus > > message+

Re: user unit file

2021-03-05 Thread Greg Wooledge
Jim Popovitch (j...@k4vqc.com) wrote: > It's a VPS server, I ssh'ed in. No GUI, minimal install to test systemd > user unit files. Apparently you need to configure sshd to use PAM. > bob@sbc:~$ ps -ef|grep dbus > message+ 520 1 0 13:08 ?00:00:00 /usr/bin/dbus-daemon >

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 13:11 -0500, Greg Wooledge wrote: > Jim Popovitch (j...@k4vqc.com) wrote: > > Right now I can't get this to work: > > > > ~$ systemctl --user enable Test.service > > Failed to connect to bus: No such file or directory > > After Googling this error, I suspect that you're

Re: user unit file

2021-03-05 Thread Greg Wooledge
Jim Popovitch (j...@k4vqc.com) wrote: > Right now I can't get this to work: > > ~$ systemctl --user enable Test.service > Failed to connect to bus: No such file or directory After Googling this error, I suspect that you're either operating in an environment where the XDG variables are not being

Re: user unit file

2021-03-05 Thread Jim Popovitch
On Fri, 2021-03-05 at 18:36 +0100, Sven Hartge wrote: > Jim Popovitch wrote: > > Please be gentle. Searching for this is proving futile. > > How do I enable systemd user (--user) unit files that are maintained in > > a user's home directory at /home/bob/.config/systemd/user/*.service ? > > What

Re: user unit file

2021-03-05 Thread Sven Hartge
Jim Popovitch wrote: > Please be gentle. Searching for this is proving futile. > How do I enable systemd user (--user) unit files that are maintained in > a user's home directory at /home/bob/.config/systemd/user/*.service ? What do you mean with "enable"? "Enable" as in "enable support"?

user unit file

2021-03-05 Thread Jim Popovitch
Please be gentle. Searching for this is proving futile. How do I enable systemd user (--user) unit files that are maintained in a user's home directory at /home/bob/.config/systemd/user/*.service ? tia, -Jim P.