Re: [systemd-devel] inetd-style service with connection logging

2016-06-22 Thread Brian Kroth
On Jun 17, 2016 11:11, "Brian Kroth" <bpkr...@gmail.com> wrote: > > Mantas Mikulėnas <graw...@gmail.com> 2016-06-17 08:00: >> >> On Fri, Jun 17, 2016 at 5:05 AM, Brian Kroth <bpkr...@gmail.com> wrote: >> >>> Hi, I'm trying to convert an

[systemd-devel] inetd-style service with connection logging

2016-06-16 Thread Brian Kroth
Hi, I'm trying to convert an old school inetd service into a systemd socket activation. More or less what was describe in [1] worked for me. However, the bit I'm currently missing is connection logging. With the openbsd-inetd package (Debian), one could enable libwrap style logging with

[systemd-devel] environment variable questions

2016-06-16 Thread Brian Kroth
Hi again, related to my inetd conversion example, in my .service unit I have something like this: # nagios-nrpe-server@.service: [Service] Environment=NICENESS=0 EnvironmentFile=-/etc/default/nagios-nrpe-server ExecStart=/usr/sbin/nrpe -i $DAEMON_OPTIONS Nice=$NICENESS #

Re: [systemd-devel] environment variable questions

2016-06-17 Thread Brian Kroth
Mantas Mikulėnas <graw...@gmail.com> 2016-06-17 07:47: On Fri, Jun 17, 2016 at 6:01 AM, Brian Kroth <bpkr...@gmail.com> wrote: Hi again, related to my inetd conversion example, in my .service unit I have something like this: # nagios-nrpe-server@.service: [Service] Environmen

Re: [systemd-devel] inetd-style service with connection logging

2016-06-17 Thread Brian Kroth
Mantas Mikulėnas <graw...@gmail.com> 2016-06-17 08:00: On Fri, Jun 17, 2016 at 5:05 AM, Brian Kroth <bpkr...@gmail.com> wrote: Hi, I'm trying to convert an old school inetd service into a systemd socket activation. More or less what was describe in [1] worked for me. However,

Re: [systemd-devel] inetd-style service with connection logging

2016-06-23 Thread Brian Kroth
Brian Kroth <bpkr...@gmail.com> 2016-06-22 13:48: On Jun 17, 2016 11:11, "Brian Kroth" <bpkr...@gmail.com> wrote: Mantas Mikulėnas <graw...@gmail.com> 2016-06-17 08:00: On Fri, Jun 17, 2016 at 5:05 AM, Brian Kroth <bpkr...@gmail.com> wrote: Hi, I'm try

[systemd-devel] network unit Match by router advertisement?

2016-05-11 Thread Brian Kroth
Hi again all, TL;DR: would it be possible (or make sense) to have systemd Match rules for network units that could match on some artifact of the network the link is attached to like vlan tag, router advertisement, wireless access point or gateway mac, etc.? So, the original motivation for this

[systemd-devel] default service restart action?

2016-05-11 Thread Brian Kroth
Hi all, I'm in the midst of steeping myself in systemd docs as I prepare to face lift a slew of services for Debian Jessie updates. As I read through things I'm starting to think through a number of new ways I could potentially reorganize some of our services, which is cool. With my ideas though

Re: [systemd-devel] network unit Match by router advertisement?

2016-05-16 Thread Brian Kroth
Lennart Poettering <lenn...@poettering.net> 2016-05-11 19:31: On Wed, 11.05.16 11:32, Brian Kroth (bpkr...@gmail.com) wrote: Hi again all, TL;DR: would it be possible (or make sense) to have systemd Match rules for network units that could match on some artifact of the network th

Re: [systemd-devel] default service restart action?

2016-05-16 Thread Brian Kroth
On May 11, 2016 12:07, "Lennart Poettering" <lenn...@poettering.net> wrote: > > On Wed, 11.05.16 11:27, Brian Kroth (bpkr...@gmail.com) wrote: > > > Hi all, I'm in the midst of steeping myself in systemd docs as I prepare to > > face lift a slew of services fo

Re: [systemd-devel] Performing a config check before restarting a process

2016-05-16 Thread Brian Kroth
Terry Burton 2016-05-16 17:43: On 13 May 2016 at 00:04, Terry Burton wrote: I have a process (ISC DHCP) that has no reload or soft restart mechanism. The only way to "reload" it is a stop and start. I understand systemd's design choice of

Re: [systemd-devel] How to disable Predictable Network Interface Names using a drop-in?

2017-01-20 Thread Brian Kroth
How about /etc/default/grub.d/ for the kernel parameter drop in file. That's how I do it at least. I don't think it's super well documented tho and I forget the suffix it expects offhand (*.cfg?). Follow the chain of the update-grub scripts and you should find it. Cheers, Brian On Fri, Jan 20,

Re: [systemd-devel] why do we have aliases fro timedated, resolved, networkd, and what are they good for?

2016-09-12 Thread Brian Kroth
Umut Tezduyar Lindskog 2016-09-12 07:19: Hi Michael, On Sat, Sep 10, 2016 at 1:00 AM, Michael Biebl wrote: Hi I wonder why we have the following aliases/symlinks dbus-org.freedesktop.hostname1.service -> systemd-hostnamed.service

Re: [systemd-devel] assign variable to some service item

2016-09-29 Thread Brian Kroth
I asked about something similar to this a while back. I think the answer was that variable expansion only works in the Exec* directives. Cheers, Brian On Thu, Sep 29, 2016, 03:26 Vasiliy Tolstov wrote: > I have CPUAffinity inside service file and want to configure it via >

Re: [systemd-devel] PAM session hooks for independent session

2016-10-29 Thread Brian Kroth
On Sat, Oct 29, 2016, 07:02 Reindl Harald wrote: > > > Am 29.10.2016 um 13:37 schrieb Antoine Martin: > > Just like "screen" or "tmux", we want to ensure that some xpra sessions > > (aka "screen for X11", VNC-like but seamless) can survive when the user > > logs out > >

Re: [systemd-devel] systemd 210 - mount/umount/remount

2016-10-14 Thread Brian Kroth
I think there's been some recent discussion related to this on this mailing list. You might want to check the archives and/or look into the nofail and/or noauto options in your fstab entries. Seems like nofail at least will change the local-fs.target dependency into a Want instead of a Require,

Re: [systemd-devel] How to deploy systemd-nspawn containers and use for deployment

2016-10-12 Thread Brian Kroth
Seems really dependent upon the container layout as to what's the most appropriate way of doing that. For instance, if the underlying fs of the source container is something like btrfs or zfs you could imagine doing a send/recv of a golden snapshot. Possibly also for an lvm volume/snapshot. For

Re: [systemd-devel] systemd reboot problem

2017-03-07 Thread Brian Kroth
In that case, you could also just do something like this: # for i in {u,s,b}; do echo $i > /proc/sysrq-trigger; done For "Remount read-only, Sync, (re)Boot". There are also hotkey sequences to do that (the modern equivalent of the three fingered salute) which might be more appropriate in the case