[systemd-devel] systemd-encrypt is a little painful

2020-09-06 Thread Kai Hendry
Hi guys, After making https://www.youtube.com/watch?v=gh3jkIENmAM I'm thinking the install process could be a lot smoother if: somehow systemd could do the initramfs, i.e. take over mkinitcpio's hook role I don't understand why sd-encrypt can't autodiscover the cryto_LUKS root partition. Appen

[systemd-devel] Time synchronization over HTTP?

2016-06-26 Thread Kai Hendry
Hi there, I had a quick look at https://github.com/systemd/systemd/tree/master/src/timesync to try work out if /usr/lib/systemd/systemd-timesyncd had some sort of fallback if ntp UDP port 123 traffic is blocked. This happens all too often with my deployments of Webconverger and I was wondering if

Re: [systemd-devel] Time synchronization over HTTP?

2016-06-26 Thread Kai Hendry
On Mon, 27 Jun 2016, at 10:42 AM, Reindl Harald wrote: > are you aware that in case of many machines you should setp *one* ntpd > and the other machines only acess this internal host to take away load > from pool.ntp.org which would also solve the problem access port 123 > outside your network f

Re: [systemd-devel] Time synchronization over HTTP?

2016-06-26 Thread Kai Hendry
On Mon, 27 Jun 2016, at 01:03 PM, Mantas Mikulėnas wrote: > Who would host the sync server? Or would you just point it at a random > site > and hope its operators don't mind? It's already bad enough that systemd > defaults to Google's private NTP servers, IMHO. Reminds me of the "Am I on the Inter

Re: [systemd-devel] Time synchronization over HTTP?

2016-06-27 Thread Kai Hendry
On Mon, 27 Jun 2016, at 08:33 PM, Reindl Harald wrote: > normally service level agreemnets contain basic prerequisites and if the > are ignored the customers has to pay a penalty in case of support cases You live in a different world to me. Just going to follow up with a blog I found on the ma

[systemd-devel] Wishlist: HandleLidSwitchDocked ... when powered?

2016-07-13 Thread Kai Hendry
Hi there, I want my T460s machine to suspend on lid close only when it's not charging off mains. I've looked over https://www.freedesktop.org/software/systemd/man/logind.conf.html & https://wiki.archlinux.org/index.php/Power_management and I don't see how this can be achieved. Is it reasonable f

Re: [systemd-devel] Zero downtime restart of Web application (Nginx, Puma, JRuby)

2016-07-13 Thread Kai Hendry
On Sat, 18 Jun 2016, at 07:56 PM, Paul Menzel wrote: > Is that possible by just using systemd, or is a load balancer like > HAProxy or a special NGINX configuration and service file templates > needed? I'm looking for answers too and the best switcheroo I've found so far is http://dokku.viewdocs.i

Re: [systemd-devel] Zero downtime restart of Web application (Nginx, Puma, JRuby)

2016-07-14 Thread Kai Hendry
On Thu, 14 Jul 2016, at 05:07 PM, David Timothy Strauss wrote: > Dokku would be about a 5-10 lines of shell script with services running > in > systemd. I would love to see that 10 lines of shell you claimed, but I think you might be underestimating the fine work that went into Dokku! Cheers, ___

[systemd-devel] Formatting Execstart= for readability

2017-08-16 Thread Kai Hendry
Hi there, I maintain a service file with a lot of switches in the ExecStart https://github.com/kaihendry/pingprom/blob/master/prometheus%40.service#L8 I want to almost document each switch ... e.g. -storage.local.retention=8544h # keep data for a year I know inline comments do *not* work in bas

[systemd-devel] "Unit type .busname is not supported on this system." when setting up timer

2015-06-18 Thread Kai Hendry
Hi there, Trying to setup a timer on my Archilnux Arm Raspberry PI running systemd 219-6. Can anyone spot a problem with my timer? http://s.natalian.org/2015-06-17/1434580520_1912x1036.png Getting these wierd error messages like: Unit type .busname is not supported on this system. systemd-analyz

Re: [systemd-devel] "Unit type .busname is not supported on this system." when setting up timer

2015-06-18 Thread Kai Hendry
On Thu, 18 Jun 2015, at 12:54 PM, Lennart Poettering wrote: > This message is downgraded with 220 and newer. Please update. Thanks for the reply, though my Alarm device is upto date. Guess I need to wait for Archlinux package maintainers. Still I don't quite understand if there was something wron

Re: [systemd-devel] "Unit type .busname is not supported on this system." when setting up timer

2015-06-18 Thread Kai Hendry
On Thu, 18 Jun 2015, at 06:56 PM, Lennart Poettering wrote: > nah, this is completely unrelated. The message was printed on > kdbus-less systems. We have now downgraded this so that nobody has to > see this unless he turns on debug logging. Ah, ok. Though could you recognise what's wrong with my t

Re: [systemd-devel] "Unit type .busname is not supported on this system." when setting up timer

2015-06-19 Thread Kai Hendry
On Thu, 18 Jun 2015, at 07:04 PM, Lennart Poettering wrote: > What does "systemctl status" say for it? http://s.natalian.org/2015-06-18/1434659705_1912x1036.png Sorry, my fault. Seems like I failed to run: systemctl daemon-reload... Many thanks, ___

Re: [systemd-devel] "Unit type .busname is not supported on this system." when setting up timer

2015-06-19 Thread Kai Hendry
On Thu, 18 Jun 2015, at 07:04 PM, Lennart Poettering wrote: > What does "systemctl status" say for it? http://s.natalian.org/2015-06-18/1434659705_1912x1036.png Sorry, my fault. Seems like I failed to run: systemctl daemon-reload... Many thanks, ___

[systemd-devel] Calculating Web page loads accurately with systemd-nspawn's network-veth & Xorg

2015-08-23 Thread Kai Hendry
Hi there, I've managed to get Firefox running like so: sudo systemd-nspawn --setenv=DISPLAY=:0 \ --setenv=XAUTHORITY=~/.Xauthority \ --bind-ro=$HOME/.Xauthority:/root/.Xauthority \ -D ~/containers/firefox \ firefox However I want to ha

Re: [systemd-devel] Calculating Web page loads accurately with systemd-nspawn's network-veth & Xorg

2015-08-23 Thread Kai Hendry
On Sun, 23 Aug 2015, at 10:05 PM, Mantas Mikulėnas wrote: > Try adding --bind=/tmp/.X11-unix, for the named X11 sockets. Ah! Thank you Mantas. I logged this tip on http://dabase.com/e/12009/ ___ systemd-devel mailing list systemd-devel@lists.freedesktop.

Re: [systemd-devel] Calculating Web page loads accurately with systemd-nspawn's network-veth & Xorg

2015-08-24 Thread Kai Hendry
On Mon, 24 Aug 2015, at 08:05 PM, Lennart Poettering wrote: > I'd be careful with things like this... You invoke firefox as PID 1 > then. On UNIX PID 1 is special, it needs to reap foreign children and > needs to handle signals differently, thus taking arbitrary processes > and running them like th

[systemd-devel] Pulseaudio & systemd-nspawn

2015-11-01 Thread Kai Hendry
Hi there, I'm trying to have a super simple way of launching a browser in a VPN. I am on Archlinux with systemd 227-1 with pulseaudio 7.1-1 & I have another Arch container configured like so: X1C3:~$ cat /etc/systemd/system/systemd-nspawn@firefox.service.d/override.conf [Service] ExecStart= Exec

[systemd-devel] journalctl's http://localhost:19531/browse

2015-11-01 Thread Kai Hendry
Hi guys, Just playing around with the journalctl Web interface here: http://s.natalian.org/2015-11-02/journalctl.mp4 How come messages like `logger foo` do not appear in http://localhost:19531/browse but they do in `journalctl -b -f`? Is the API for http://localhost:19531/ defined somewhere sinc

Re: [systemd-devel] journalctl's http://localhost:19531/browse

2015-11-02 Thread Kai Hendry
On Mon, 2 Nov 2015, at 06:10 PM, Lennart Poettering wrote: > Note that the website will show only those accessible to the > "systemd-journal" group. > > Did you run "logger" unprivileged? Did you run journalctl privileged? > That might explain the difference? In that video earlier I ran journalct

Re: [systemd-devel] journalctl's http://localhost:19531/browse

2015-11-02 Thread Kai Hendry
On Tue, 3 Nov 2015, at 02:27 AM, Lennart Poettering wrote: > Hmm, maybe there's something wrong with the ACLs on the journal files > or the directory they reside in? Normally, there should be an ACL that > allows the "systemd-journal" group access to all files, and > systemd-journal-gatewayd is run

Re: [systemd-devel] journalctl's http://localhost:19531/browse

2015-11-02 Thread Kai Hendry
On Mon, 2 Nov 2015, at 07:58 PM, Colin Guthrie wrote: > I suspect that you'd probably want to hide this behind some kind of > proxy for security reasons. That proxy could add appropriate > authentication (e.g IP restrictions, user auth etc) and add in any > additional headers). > I could be wrong w

[systemd-devel] Run cleanup service on stop

2015-11-02 Thread Kai Hendry
Hi there guys, I have a service where it's important that it cleans up *after* it's run. In fact it's probably a good idea to make sure it's clean *before* it's run too. I got as far as: After=clean.service Requires=clean.service But that does not seem to clean on stop (say if the machine is sh

Re: [systemd-devel] Run cleanup service on stop

2015-11-04 Thread Kai Hendry
On Wed, 4 Nov 2015, at 05:41 PM, Andrei Borzenkov wrote: > Why? It sounds like exact use case for Pre/Post commands. Well, with long lines like: ExecStartPre=/bin/bash -c 'grep -q noclean /etc/webc/cmdline || for d in ~/{.mozilla,.cache,.adobe,.macromedia,Downloads}; do rm -vrf $d; done' ExecStop

Re: [systemd-devel] Pulseaudio & systemd-nspawn

2015-11-09 Thread Kai Hendry
On Mon, 2 Nov 2015, at 09:46 PM, Felipe Sateler wrote: > Maybe the better option is to load the tcp pulseaudio module, allow > connections from the container ip, and inject PULSE_SERVER envvar into > the container. Using tcp will not work since I'm using OpenVPN which seems to usurp all network

[systemd-devel] How to debug blocking service start?

2015-03-24 Thread Kai Hendry
Hi there, How do I figure out why or where something is stuck? http://s.natalian.org/2015-03-25/systemd-start-issue.png `journalctl -u surf -f` prints nothing. Binary surf runs fine when I run it manually. Many thanks, ___ systemd-devel mailing list s

Re: [systemd-devel] How to debug blocking service start?

2015-03-26 Thread Kai Hendry
First, thanks for trying to help me Kai. Awesome name btw. On Fri, 27 Mar 2015, at 03:26 AM, Kai Krakow wrote: > Try Type=simple to not let it wait. That is telling systemd, that the > binary > will not daemonize - athough it should be default according to [1]. It's still getting stuck with Type

Re: [systemd-devel] How to debug blocking service start?

2015-03-26 Thread Kai Hendry
On Fri, 27 Mar 2015, at 12:14 PM, Daurnimator wrote: > My first guess based on that screenshot is case: Simple vs simple. No I fixed that problem. :) http://ix.io/h8U Wish there was a service validator service. ___ systemd-devel mailing list systemd-d

Re: [systemd-devel] How to debug blocking service start?

2015-04-04 Thread Kai Hendry
Thanks for the reply Lennart! I'm sorry I couldn't attend your FOSSASIA talk in Singapore. I was on holiday. On Sat, 4 Apr 2015, at 12:16 AM, Lennart Poettering wrote: > something else that runs before it is hanging hence. What does > "systemctl list-jobs" say before you run this and it hangs? [r

Re: [systemd-devel] How to debug blocking service start?

2015-04-07 Thread Kai Hendry
On Tue, 7 Apr 2015, at 11:13 PM, Lennart Poettering wrote: > What does "networkctl status" say when this happens? And "networkctl > status -a"? Oooh, I love those commands. Here is the output which says I'm routable: http://s.natalian.org/2015-04-08/networkctl.txt Maybe all of this has someth

[systemd-devel] Requiring hardware device and escaping device names

2014-03-25 Thread Kai Hendry
Hi, I have a keyboard daemon that sometimes fails to come up, I guess because the device is not there. However my current attempt does not work: [hendry@alarmpi ~]$ cat /usr/lib/systemd/system/shkd.service [Unit] Description=Simple HotKey Daemon Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2deven

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-25 Thread Kai Hendry
On 25 March 2014 18:01, Kai Hendry wrote: > Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device On #systemd IRC I was recommended After=, and I think it's working as it should! After=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device > Is Requires= incor

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-26 Thread Kai Hendry
Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl wrote: > 2014-03-26 3:56 GMT+01:00 Kai Hendry : > If your daemon is not functional if the hardware is not present, I'd > probably start it via a udev rule and SYSTEMD_WANTS. Do you have an example for this pl

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-30 Thread Kai Hendry
On 26 March 2014 22:55, "Jóhann B. Guðmundsson" wrote: > SUBSYSTEM=="input", ENV{ID_INPUT_KEYBOARD}=="?*", ENV{.INPUT_CLASS}="kbd", > TAG+="systemd", ENV{SYSTEMD_WANTS}+="shkd@%p.service" Trying to teach myself how to fish here. How did you know it would match this particular device? $ udevadm m

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-30 Thread Kai Hendry
On 31 March 2014 01:00, Andrey Borzenkov wrote: > udevadm monitor --env would be more useful, it also shows device > attributes after event is processed. Thank you Andrey! With %N and a reboot, the keyboard is working. However for interest sake, I un-plugged the USB device and re-inserted it and

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-31 Thread Kai Hendry
On 31 March 2014 09:54, Kai Hendry wrote: > Not sure what to try next? If I start it manually `sudo systemctl > start shkd@-dev-input-event0.service`, it starts working again. Is > http://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutSec= > the right way to

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-22 Thread Kai Hendry
On 19 July 2013 01:29, Lennart Poettering wrote: > It is certainly surprising at first, but it makes a lot of sense. In > systemd ordering deps and requirement deps are truly orthogonal. This is > useful in many cases, because sometimes you just want to pull something > else in, but not imply any

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 22 July 2013 23:56, Andrey Borzenkov wrote: > network-online.target has no requirement for pingtest.service. All that > this configuration does is delaying network-online.target by at most 60 > seconds, that's all. If network is not up at this point - too bad. That ping switch Lennart proposed

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 25 July 2013 00:56, Andrey Borzenkov wrote: > Do you really want all your services that depend on network being up to > fail if your AP is busy and needs 61 seconds to establish connection? Firstly I use a PI with a wired connection with netctl ifplugd. I don't know if there is a sane replacem

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 24 July 2013 20:26, Colin Guthrie wrote: > Also as the previous enable would have written the .wants symlink, ti's > probably work doing a "rm -f > /etc/systemd/system/network-online.target.wants/pingtest.service" to > ensure it's cleaned out properly (in theory it shouldn't do any harm, > but

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-24 Thread Kai Hendry
On 25 July 2013 12:55, Kai Hendry wrote: > Though if you take a look at http://ix.io/6Rz you can see `systemctl > show -p "Requires" network-online.target` does not work for some > reason. I was expecting it to say darkice.service. I probably just > don't understa

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-28 Thread Kai Hendry
On 25 July 2013 17:37, Colin Guthrie wrote: > These targets are effectively static synchronisation points. The problem > here is that you're trying to map a very dynamic concept (networks > coming and going) to a static one (targets being reached). Well I'm happy just with coming. ;) I expecting

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-28 Thread Kai Hendry
On 26 July 2013 04:17, Lennart Poettering wrote: > We generally generate warnings about invalid lines and proceed. Aftre we > parsed everything we then do a couple of checks whether a unit still > makes sense with the stuff that was correctly parsed, and only if the > unit does't pass that check w

[systemd-devel] cgroup use case for preventing a system lock up if say a browser exhausts memory

2012-11-11 Thread Kai Hendry
Hi there, I hope this is the right forum for a systemd question, to address a particular problem I'm trying to solve. Problem is I've found Firefox (for example, this probably can be extrapolated to any browser) to lock up machines when memory is exhausted. Ideally when the browser hits a certain

Re: [systemd-devel] cgroup use case for preventing a system lock up if say a browser exhausts memory

2012-11-13 Thread Kai Hendry
On 12 November 2012 19:35, Colin Guthrie wrote: > When launching firefox becomes a "user unit", then it will be contained > within it's own cgroup and can have resource limits imposed with > relative ease. Thanks Colin for your reply. I'm interested in a general systemd framework example of a sy

[systemd-devel] Definitive place for powertop tunables?

2012-11-18 Thread Kai Hendry
Hi there, I would normally put these `powertop -html` tunables in rc.local: http://s.natalian.org/2012-11-19/1353291487_1366x768.png Is http://0pointer.de/public/systemd-man/tmpfiles.d.html the right place? If so powertop could do with some patches to help create the file, one would think. Many

[systemd-devel] journalctl to csv

2013-01-26 Thread Kai Hendry
Hi there, As a simple exercise for me to better understand journalctl I want to echo out the Lid open/close events as a space delimited file: epoch opened/closed Furtherest I got was this attached lid script. $ bash lid.sh | sort 1359218250 0 1359251787 1 1359253749 0 1359259050 1 Which feels a

Re: [systemd-devel] journalctl to csv

2013-01-27 Thread Kai Hendry
Thanks! Any ideas how to stream out only new events? Ideally both open & close? Many thanks, ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] journalctl to csv

2013-01-28 Thread Kai Hendry
On 28 January 2013 13:26, Zbigniew Jędrzejewski-Szmek wrote: >> Any ideas how to stream out only new events? Ideally both open & close? > I now added MESSAGE_IDs to logind events: > #define SD_MESSAGE_LID_OPENED > SD_ID128_MAKE(b7,2e,a4,a2,88,15,45,a0,b5,0e,20,0e,55,b9,b0,6f) > #define SD_M

Re: [systemd-devel] journalctl to csv

2013-01-28 Thread Kai Hendry
On 29 January 2013 01:51, Zbigniew Jędrzejewski-Szmek wrote: > So just 'journalctl MESSAGE_ID=b72ea4a2881545a0b50e200e55b9b06f > MESSAGE_ID=b72ea4a2881545a0b50e200e55b9b070' > should work. Indeed it does. Though how do I listen on journalctl for *future events*? `journalctl -f -b MESSAGE='Lid c

Re: [systemd-devel] journalctl to csv

2013-01-29 Thread Kai Hendry
On 29 January 2013 15:33, Zbigniew Jędrzejewski-Szmek wrote: > Try 'journalctl --lines=0 --follow' with the latest git. Ah, I see the change: http://cgit.freedesktop.org/systemd/systemd/commit/?id=67e04a486b92fcb656049cb4d6b66148c7d2e61b I'm too much of a newbie to compile systemd from git on Ar

[systemd-devel] /etc/systemd/system/darkice.service

2013-07-18 Thread Kai Hendry
Hi guys, http://sprunge.us/SLSF is the service file I have currently. I'm running http://archlinuxarm.org/ on a Rpi with systemd 204-3. I'm having issues creating a service file for "darkice" a audio streamer that depends on: * a network connection * a microphone sys-devices-platform-bcm2708_usb

Re: [systemd-devel] /etc/systemd/system/darkice.service

2013-07-18 Thread Kai Hendry
On 18 July 2013 20:27, Lennart Poettering wrote: > You need an After= here for the device, too. Thanks this fixes the first scenario: http://sprunge.us/LiQF I must say needing After & BindsTo is a bit confusing. I also don't see the need for different sections. Never quite know under which headi