On Fri, 2021-03-05 at 18:36 +0100, Sven Hartge wrote: > Jim Popovitch <j...@k4vqc.com> 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"? Then everything is enabled. > > Or "enable" as in "enable the unit"? Then "systemctl --user enable > unitname.service" does what you want. > > Or "enable" as in "start at boot"? Then you to enable lingering for the > user via loginctl as root. >
Why not, All of the above! :) Right now I can't get this to work: ~$ systemctl --user enable Test.service Failed to connect to bus: No such file or directory ~$ cat ~/.config/systemd/user/Test.service [Unit] Description = Test Service After = network.target [Service] WorkingDirectory=/home/bob/Test/ ExecStart = bash Test.sh TimeoutSec=15 [Install] WantedBy=multi-user.target tia, -Jim P.