Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #232413
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: user unit file |
| Date | 2021-03-05 19:00 +0100 |
| Message-ID | <BPmU2-6ET-15@gated-at.bofh.it> (permalink) |
| References | <BPmhj-6rt-3@gated-at.bofh.it> <BPmAF-6xU-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 2021-03-05 at 18:36 +0100, Sven Hartge wrote: > Jim Popovitch <jim@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.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 18:20 +0100
Re: user unit file Sven Hartge <sven@svenhartge.de> - 2021-03-05 18:40 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 19:00 +0100
Re: user unit file Greg Wooledge <greg@wooledge.org> - 2021-03-05 19:20 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 19:20 +0100
Re: user unit file Greg Wooledge <greg@wooledge.org> - 2021-03-05 19:40 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 20:20 +0100
Re: user unit file Greg Wooledge <greg@wooledge.org> - 2021-03-05 20:30 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 20:40 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 20:30 +0100
Re: user unit file Greg Wooledge <greg@wooledge.org> - 2021-03-05 20:30 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-05 20:40 +0100
Re: user unit file Andrei POPESCU <andreimpopescu@gmail.com> - 2021-03-05 21:50 +0100
Re: user unit file Jim Popovitch <jim@k4vqc.com> - 2021-03-06 00:50 +0100
csiph-web