Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-11 Thread Kamil Jońca
Lennart Poettering writes: [...] >> > >> > (i.e. I would to have PATH=$PATH:xxx) > > You can add them to ~/.config/systemd/user.conf in the Environment= > field in the [Manager] section, see systemd-system.conf(5).x Two questions: 1. Can I there use construct like PATH=$PATH:xxx? 2. whether ther

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-11 Thread Peter Hoeg
Hi, > So my question is, where to init variables for user units? > I woluld like to have possiblity to set them as not only as fixed > strings > > (i.e. I would to have PATH=$PATH:xxx) You can add them to ~/.config/systemd/user.conf in the Environment= field in the [Manager] section, see syste

Re: [systemd-devel] Debugging "A stop job is running" shutdown messages

2018-09-11 Thread Ryan Gonzalez
You can run: journalctl -b-1 -r This will show the logs from the last boot (-b-1) in reverse (-r). You can then scroll down a bit and see what services didn't stop on time. In addition, during shutdown you can press Ctrl+Alt+Del 8 times within 2 seconds (much easier than it sounds) in order to f

Re: [systemd-devel] Debugging "A stop job is running" shutdown messages

2018-09-11 Thread Mantas Mikulėnas
On Tue, Sep 11, 2018 at 10:06 PM Evan Klitzke wrote: > When I power off my laptop, I often (but not always) have a long > shutdown process. When this happens, the console says "A stop job is > running for User Manager for UID 1000" with a 1m59s timeout, and I have > to wait for that timeout befor

[systemd-devel] Debugging "A stop job is running" shutdown messages

2018-09-11 Thread Evan Klitzke
When I power off my laptop, I often (but not always) have a long shutdown process. When this happens, the console says "A stop job is running for User Manager for UID 1000" with a 1m59s timeout, and I have to wait for that timeout before my computer shuts down. How can I debug which service is

Re: [systemd-devel] mount unit with special requirements

2018-09-11 Thread Michael Hirmke
Hi, [...] >> No, I wrote: >> >> *- The partition has to be mounted on boot.* >Well, what does that mean? Do you just want the path to be available? >if so, that's what an automount unit will do for you without actually >mounting the superblock. Or do you want the superblock to be hooked in >alrea

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-11 Thread Lennart Poettering
On Di, 11.09.18 09:26, Kamil Jońca (kjo...@o2.pl) wrote: > I post on debian-user, but no answer. > Maybe here I found some knowledge. > > KJ > kjo...@poczta.onet.pl (Kamil Jońca) writes: > > > I tried to setup some user units in my desktop, and have problem with > > env variables. > > So far I s

Re: [systemd-devel] Enforcing journald diskspace limit.

2018-09-11 Thread Lennart Poettering
On Mo, 20.08.18 14:08, Frédéric HILPERT (frede...@hilpert.me) wrote: > Hi, > > I have a question about systemd. Not wanting to create an issue on githbub > because there are already plenty and this may not be a bug. > > I have a 1GB /var/log/ partition (on a stock Centos 7) and set > SystemMaxUs

Re: [systemd-devel] How to create minimal portable services environments?

2018-09-11 Thread Lennart Poettering
On Mi, 29.08.18 12:24, Wojtek Swiatek (w...@swtk.info) wrote: > Some of these are existing directories, some new ones and then there are > files (new, but possibly existing as well). > > *How should I create a filesystem which has only the files required by the > packages (= the ones it brings i

Re: [systemd-devel] non-dev systemd-devel package for Linux

2018-09-11 Thread Lennart Poettering
On Sa, 01.09.18 01:00, Reindl Harald (h.rei...@thelounge.net) wrote: > Am 31.08.18 um 23:41 schrieb Sayeed hyder: > > Thanks, I am not confused between udev and devel. Let me explain a bit > > more. My understanding is with the devel package, when I include in my > > project, I am downloading all

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-11 Thread Mantas Mikulėnas
On Tue, Sep 11, 2018 at 10:34 AM Kamil Jońca wrote: > I post on debian-user, but no answer. > Maybe here I found some knowledge. > > KJ > kjo...@poczta.onet.pl (Kamil Jońca) writes: > > > I tried to setup some user units in my desktop, and have problem with > > env variables. > > So far I set the

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-11 Thread Kamil Jońca
I post on debian-user, but no answer. Maybe here I found some knowledge. KJ kjo...@poczta.onet.pl (Kamil Jońca) writes: > I tried to setup some user units in my desktop, and have problem with > env variables. > So far I set them up in custom .xsession file (in home directory) > I tried to put > s