[systemd-devel] Wrong interface name

2020-08-04 Thread Bao Nguyen
Hello, Recently I found that my kvm guest has inconsistent network names every reboot. Here is the log myPC kernel: virtio_net virtio0 eth000102030405: renamed from eth0 myPC kernel: virtio_net virtio1 eth000102030406: renamed from eth1 myPC kernel: virtio_net virtio2 eth000102030407:

[systemd-devel] Systemd stop info

2020-02-24 Thread Bao Nguyen
Hi everyone, When rebooting the system, I notice systemd print out: [[0;32m OK [0m] Stopped Account Service What do 0;32m and 0m means? Thanks, Brs, Naruto ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

[systemd-devel] Cannot create 'home' directory systemd-tmpfiles-setup.service

2019-12-30 Thread Bao Nguyen
Hi everyone, systemd-tmpfiles-setup.service throws a strange error when booting my system . Dec 30 11:32:53 mynode systemd-tmpfiles[751]: Failed to open directory 'home': No such file or directory Dec 30 11:32:53 mynode systemd[1]: systemd-tmpfiles-setup.service: Job

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-12 Thread Bao Nguyen
us resolve it or not. But it throws "Unknown username" so I think dbus does not know anything about this user and it leads to the authenticate fails. Brs, Bao On Tue, Mar 12, 2019 at 6:20 PM Mantas Mikulėnas wrote: > On Tue, Mar 12, 2019 at 1:17 PM Bao Nguyen wrote: > >>

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-12 Thread Bao Nguyen
Hi again, I tried to add the LDAP user in /etc/dbus-1/system.conf policy and then send signal SIGHUP to reload the configuration, also for dbus flush user cache, but dbus said that Unknown username "ldap_demo" on element Reloaded configuration I search the source code in dbus. it will call

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-08 Thread Bao Nguyen
i, Mar 8, 2019 at 4:59 PM Mantas Mikulėnas wrote: > > On Fri, Mar 8, 2019 at 11:54 AM Lennart Poettering > wrote: >> >> On Fr, 08.03.19 16:05, Bao Nguyen (bao...@gmail.com) wrote: >> >> > Hi Lennart, >> > >> > After debugging the problem, when

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-08 Thread Bao Nguyen
e why and maybe restarting dbus is not a good WA to do. My system uses SSSD, PAM and LDAP to authenticate the user, Thanks, Brs, Naruto On Sat, Mar 2, 2019 at 2:31 PM Bao Nguyen wrote: > > Hi Lennart, > > Thanks for your information. > > I do not use selinux. Could you please show

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-01 Thread Bao Nguyen
t still meets Access Denied. Sorry for asking a lot of questions. Thanks a lot, Brs, Naruto On Fri, Mar 1, 2019 at 5:22 PM Lennart Poettering wrote: > > On Do, 28.02.19 18:21, Bao Nguyen (bao...@gmail.com) wrote: > > > Hello everyone, > > > > I am using systemd 228. When the

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-03-01 Thread Bao Nguyen
n a separate filesystem that's not yet > mounted at the time of system boot, so dbus-daemon cannot find its > configuration at that time. When /usr is separate, it must be pre-mounted by > the initramfs. > > On Thu, Feb 28, 2019 at 1:28 PM Bao Nguyen wrote: >> >> Hi again, >

Re: [systemd-devel] Cannot call GetUnit method with ssh

2019-02-28 Thread Bao Nguyen
Hi again, Just would like to update that when i restart dbus service, the issue does not happen. Brs, Bao On Thu, Feb 28, 2019 at 6:21 PM Bao Nguyen wrote: > Hello everyone, > > I am using systemd 228. When the system starts successfully, I tried > to login to my system via ssh

[systemd-devel] Cannot call GetUnit method with ssh

2019-02-28 Thread Bao Nguyen
Hello everyone, I am using systemd 228. When the system starts successfully, I tried to login to my system via ssh with my one of setting users, and I can log in successfully but systemd throws an error message: "Failed to get unit: Access denied" When I trace code of systemd, I found the

[systemd-devel] Turn off journald entirely

2018-11-27 Thread Bao Nguyen
Hello everyone, I found in this thread that "There's currently no way to turn off journald entirely, but it's on the TODO list" https://lists.freedesktop.org/archives/systemd-devel/2012-March/004773.html Would you please let me know how this TODO is going? Is it possible to turn off journald

[systemd-devel] Question about a random UDP port on rpcbind 0.2.3 started by systemd

2018-01-25 Thread Bao Nguyen
Hello evryone, I would like to ask you a question regarding the new random UDP port in rpcbind 0.2.3. In rpcbind 0.2.3, when I start rpcbind (version 0.2.3) through rpcbind.service, then I do netstat udp0 0 0.0.0.0:111 0.0.0.0:* 10408/rpcbind udp0 0

Re: [systemd-devel] Question about service dependency handling in systemd-228

2017-11-29 Thread Bao Nguyen
Hi all, Thank you very much for your support. I will try to fix the cycle. Brs, On Mon, Nov 27, 2017 at 4:11 PM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 27.11.2017 um 05:23 schrieb Bao Nguyen: > >> Thanks all for your comments. I will try to use

Re: [systemd-devel] Question about service dependency handling in systemd-228

2017-11-26 Thread Bao Nguyen
, Brs, Bao On Sun, Nov 26, 2017 at 4:53 PM, Reindl Harald <h.rei...@thelounge.net> wrote: > > > Am 26.11.2017 um 10:47 schrieb Bao Nguyen: > >> Regard to your question, "asi-My-5101.socket" depends on >> "My-sshd.target", I think that in my case it

Re: [systemd-devel] Question about service dependency handling in systemd-228

2017-11-26 Thread Bao Nguyen
DefaultDependencies=no in my asi-My-5101.socket, the problem go away (because sometimes I see it said the cycle created in basic.target, the behavior is really strange in systemd-228). Thanks, Brs, Bao On Sat, Nov 25, 2017 at 9:44 PM, Uoti Urpala <uoti.urp...@pp1.inet.fi> wrote: > O

[systemd-devel] Question about service dependency handling in systemd-228

2017-11-24 Thread Bao Nguyen
Hello everyone, I would like to have a question regarding to the building dependency and cycle dependency handling on systemd-228. In my system, I have some socket and service files, it has a cycle on socket target, when I run on system-228, systemd-228 throws [ 40.358582] systemd[1]: Set

Re: [systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Bao Nguyen
Hi Michael, Thanks, do you know any document or manual talks about that like removing the .service extension as you said? I mean any proof to show it can work. Thanks again, Brs On Thu, Jun 9, 2016 at 4:13 PM, Michael Biebl <mbi...@gmail.com> wrote: > 2016-06-09 10:55 GMT+02:00 Bao Ng

[systemd-devel] Can LSBInitScipts specify an dependency on systemd unit?

2016-06-09 Thread Bao Nguyen
Hi everyone, I have a script written by SysVinit, can I declare ordering of this script with a systemd unit in "X-Start-Before:" and "X-Start-After:", for ex X-Start-Before: systemd_1.service X-Start-After: systemd_2.service Can it be declared like that? Can it work as expected if LSB depends

Re: [systemd-devel] Shutdown a specific service in systemd shutdown

2016-06-01 Thread Bao Nguyen
Chapman <m...@very.puzzling.org> wrote: > On Thu, 19 May 2016, Bao Nguyen wrote: > >> Hi everyone, >> >> When the system is shutdown, systemd will terminate all services in >> parallel manner, could you let me know if there is any ways to tell >> syste

Re: [systemd-devel] Shutdown a specific service in systemd shutdown

2016-05-25 Thread Bao Nguyen
, Natsu On Mon, May 23, 2016 at 3:54 PM, Lennart Poettering <lenn...@poettering.net> wrote: > On Sun, 22.05.16 15:24, Andrei Borzenkov (arvidj...@gmail.com) wrote: > > > 19.05.2016 11:57, Martin Pitt пишет: > > > Hello Bao, > > > > > > Bao Nguyen [20

Re: [systemd-devel] Shutdown a specific service in systemd shutdown

2016-05-19 Thread Bao Nguyen
estions/1016827/how-do-i-run-a-script-before-everything-else-on-shutdown-with-systemde How do you think if I can make a script to terminate my script before all other services shutdown like above to make it "order"? Thanks a lot. Best regards, Natsu On Thu, May 19, 2016 at 3:57 PM, Ma

[systemd-devel] Shutdown a specific service in systemd shutdown

2016-05-19 Thread Bao Nguyen
Hi everyone, When the system is shutdown, systemd will terminate all services in parallel manner, could you let me know if there is any ways to tell systemd to shutdown a specific service first, then shutdown all remaining services? Thanks, Best regards, Natsu