[systemd-devel] Does "runlevel" ever show 6 as the current runlevel?

2018-05-31 Thread
Hi folks, I know runlevel is a out-of-date concept, but I am still a bit curious about the current support of runlevel in systemd. If I understand correctly, the runlevel is updated via "systemd-update-utmp". After I check the source code, I think "systemd-update-utmp" has the following behavior:

Re: [systemd-devel] [Install] section of symlinked unit file ignored if drop-in file is used

2018-05-27 Thread
can expect that the next systemd version (v239) won't have the issue then. John Lin 林自均 <johnl...@gmail.com> 於 2018年5月23日 週三 下午10:32寫道: > Hi John, > > I'm not sure whether this issue is because of > https://github.com/systemd/systemd/pull/7158 or not. I will figure it > out

Re: [systemd-devel] [Install] section of symlinked unit file ignored if drop-in file is used

2018-05-23 Thread
Hi John, I'm not sure whether this issue is because of https://github.com/systemd/systemd/pull/7158 or not. I will figure it out. Thanks. John Lin John Gallagher 於 2018年5月24日 週四 上午8:07寫道: > If I have a unit file for a service that lives off the unit file > search

Re: [systemd-devel] Does systemd-tmpfiles create hard links?

2018-04-30 Thread
Hi Lennart, Thanks for the quick response. I filed https://github.com/systemd/systemd/issues/8860. John Lin Lennart Poettering <lenn...@poettering.net> 於 2018年4月30日 週一 下午7:40 寫道: > On Mo, 30.04.18 10:47, 林自均 (johnl...@gmail.com) wrote: > > > Hi folks, > > >

[systemd-devel] Does systemd-tmpfiles create hard links?

2018-04-30 Thread
Hi folks, According to tmpfiles.d(5), the type "L" creates symbolic links. But I can't find any type to create hard links. Did I miss anything? Thanks! John Lin ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] Create a target unit to start & stop a group of services

2018-03-08 Thread
/stopped before systemctl exits. Thank you all for solving my problems. John Lin Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> 於 2018年3月7日 週三 下午8:48寫道: > On Tue, Mar 06, 2018 at 03:07:30AM +, 林自均 wrote: > > Anyone? > > > > John Lin > > > > 林自均 <jo

Re: [systemd-devel] Create a target unit to start & stop a group of services

2018-03-05 Thread
Anyone? John Lin 林自均 <johnl...@gmail.com> 於 2018年2月27日 週二 下午6:20寫道: > Hi Jérémy, > > Thank you, but I read the section "Mapping of unit properties to their > inverses" in the man page > https://www.freedesktop.org/software/systemd/man/systemd

Re: [systemd-devel] Create a target unit to start & stop a group of services

2018-02-27 Thread
configured in a unit file. I was wondering why PartOf= and ConsistsOf= are not the case. Thank you. John Lin Jérémy Rosen <jeremy.ro...@smile.fr> 於 2018年2月27日 週二 下午4:35寫道: > > > On 27/02/2018 02:49, 林自均 wrote: > > Hi both Michal, > > Thank you for the quick re

Re: [systemd-devel] Create a target unit to start & stop a group of services

2018-02-26 Thread
Hi both Michal, Thank you for the quick responses! I think I will keep on using the tedious PartOf= directive. However, may I ask why ConsistsOf= is readonly? If I can use it in my "my-apps.target", that would be great. John Lin Michal Koutný 於 2018年2月26日 週一 下午7:28寫道: > > >

[systemd-devel] Create a target unit to start & stop a group of services

2018-02-26 Thread
Hi folks, I would like to create a target unit to start and stop a group of services. For example, I want a "my-apps.target" to start and stop "docker.service", "sshd.service" and "mongodb.service". Here are my units and drop-ins: # /etc/systemd/system/my-apps.target [Unit]

Re: [systemd-devel] Multiple services using the same core service?

2018-01-27 Thread
Hi Lennart, Thank you, I will reconsider this design. John Lin Lennart Poettering <lenn...@poettering.net> 於 2018年1月24日 週三 19:41 寫道: > On Di, 26.12.17 01:39, 林自均 (johnl...@gmail.com) wrote: > > > Hi folks, > > > > I am trying to achieve: > > > >

Re: [systemd-devel] systemd-journald missing crash logs

2018-01-19 Thread
Hi Farzad, It seems that you missed Lennart's comments? It's here: https://lists.freedesktop.org/archives/systemd-devel/2018-January/040162.html John Farzad Panahi 於 2018年1月20日 週六 05:52 寫道: > Hey guys. I really appreciate any comment on this issue. Please let me >

Re: [systemd-devel] Multiple services using the same core service?

2018-01-15 Thread
" ] ; then /bin/systemctl stop sshd-core.service ; else /bin/systemctl reload-or-restart sshd-core.service ; fi' This version doesn't need to sleep 1 second to wait for sshd, so I guess it makes more sense. Is there any suggestion on that? Thanks! John Lin 林自均 <johnl...@gmail.com> 於 2017

Re: [systemd-devel] systemctl start second.service first.service

2018-01-14 Thread
Hi Lennart, I've filed https://github.com/systemd/systemd/issues/7877 for this. Thanks for explain the reason of not document this in the first place. John Lin 2018-01-13 0:41 GMT+08:00 Lennart Poettering : > On Do, 11.01.18 17:52, Uoti Urpala (uoti.urp...@pp1.inet.fi)

Re: [systemd-devel] systemctl start second.service first.service

2018-01-11 Thread
arvidj...@gmail.com> 於 2018年1月12日 週五 上午11:59寫道: > 12.01.2018 03:47, 林自均 пишет: > > How about adding an "--order" option to systemctl? With this option, > > systemctl will sort those units by ordering dependencies before > submitting > > them. > > And why does i

Re: [systemd-devel] systemctl start second.service first.service

2018-01-11 Thread
How about adding an "--order" option to systemctl? With this option, systemctl will sort those units by ordering dependencies before submitting them. Although I personally wanted this to be the default behavior, I can understand comparability matters. John Lin Reindl Harald

[systemd-devel] systemctl start second.service first.service

2018-01-11 Thread
Hi folks, I have 2 service unist: first.service and second.service. I configured "After=first.service" in second.service. Both services are "Type=oneshot". If I execute: # systemctl start first.service second.service The ordering dependency will work, i.e. second.service will start after

Re: [systemd-devel] Required kernel version for pid1 only?

2018-01-09 Thread
Hi Zbyszek and Mantas, I got it. Thank you for the detailed answers. John Lin Mantas Mikulėnas <graw...@gmail.com> 於 2018年1月9日 週二 下午4:23寫道: > On Tue, Jan 9, 2018 at 10:10 AM, 林自均 <johnl...@gmail.com> wrote: > >> Hi folks, >> >> I saw the following l

[systemd-devel] Required kernel version for pid1 only?

2018-01-09 Thread
Hi folks, I saw the following lines in README: > REQUIREMENTS: > Linux kernel >= 3.13 > Linux kernel >= 4.2 for unified cgroup hierarchy support I guess it means that some part of the whole systemd project requires Linux kernel 3.13. What if I don't need that part and only pid1

[systemd-devel] Multiple services using the same core service?

2017-12-25 Thread
Hi folks, I am trying to achieve: # systemctl start sshd-shell.service (1) # systemctl start sshd-sftp.service (2) # systemctl stop sshd-shell.service (3) # systemctl stop sshd-sftp.service (4) Before the command (1), sshd is not running. By typing (1), /etc/sshd_config is

Re: [systemd-devel] Why do passive target units have to exist?

2017-10-24 Thread
the swap.target be a passive target to avoid unnecessary sync point? I guess there must be a reason not to do so, but I don't know what it is. John Lennart Poettering <lenn...@poettering.net> 於 2017年10月24日 週二 下午4:45寫道: > On Mo, 16.10.17 15:15, 林自均 (johnl...@gmail.com) wrote: > > > Hi f

Re: [systemd-devel] Why do passive target units have to exist?

2017-10-19 Thread
- rpcbind.target - time-sync.target Are they all related to early days initscripts? Thanks. John Andrei Borzenkov <arvidj...@gmail.com> 於 2017年10月18日 週三 00:58 寫道: > 16.10.2017 18:15, 林自均 пишет: > > Hi folks, > > > > I am reading systemd documents, and I find passive ta

Re: [systemd-devel] Why is the [Install] section in a drop-in not respected?

2017-10-17 Thread
Hi Zbyszek, Got it! I will file an RFE and a pull request for that. Thanks so much! John Zbigniew Jędrzejewski-Szmek <zbys...@in.waw.pl> 於 2017年10月17日 週二 22:40 寫道: > On Tue, Oct 17, 2017 at 09:49:36AM +, 林自均 wrote: > > Hi folks, > > > > I learned that

[systemd-devel] Why is the [Install] section in a drop-in not respected?

2017-10-17 Thread
Hi folks, I learned that [Install] section in a drop-in is not respected. This behavior is documented, but I failed to see *why*. I found this related GitHub issue: https://github.com/systemd/systemd/issues/1774, and here is the quote from "poettering commented on 5 Nov 2015": > Well, this has

[systemd-devel] Why do passive target units have to exist?

2017-10-16 Thread
Hi folks, I am reading systemd documents, and I find passive target units a little bit confusing. Take "network.target" for example: "systemd-networkd.service" specifies "Wants=network.target" and "Before=network.target". That effectively makes starting "systemd-networkd.service" brings up both