[00:45] <keithzg> Hmm so how would I make user systemd units actually start automatically? I have some defined like https://paste.ubuntu.com/p/JNyShVS87D/ but after both a `systemctl --user enable my-path-watching-thing.path` on them and a `sudo loginctl enable-linger keithzg` in case that was the issue, I still have to manually start them after reboots. I bet I'm missing *something* obvious, but I dunno what!
[00:48] <sarnold> keithzg: is there anything in journalctl about the units?
[01:23] <keithzg> sarnold: Just lines logging it automatically shutting down, the "-- Reboot --" lines, and then it logs when I manually start; that seems to be it.
[01:24] <sarnold> keithzg: hmm... do you have both the path *and* the service enabled?
[01:37] <keithzg> sarnold: The .path is enabled, the .service is not enableable; it just runs a script so I was under the impression I'd not need to have an [Install] section since it wasn't constantly running, but being intermittently triggered by the .path unit?
[01:37] <sarnold> keithzg: oh. hmm.
[01:38] <sarnold> keithzg: sure enough, a .service that I run via a .timer is also not enabled and doesn't have an [Install] section.
[02:15] <mason> keithzg: User services aren't intended to be used that way, generally. Typically you just want to have root manage a unit and set User=
[02:16] <mason> That said, newer systemd might be doing it, thinking about user-run podman and similar.
[02:24] <keithzg> mason: Yeah in no small part this is me trying to be overly cute, heh, like hey if the service is running as the user I should be able to configure and handle it purely with user privs! And as per https://www.freedesktop.org/software/systemd/man/loginctl.html#enable-linger%20USER%E2%80%A6 it *should* be possible, at least from my reading of the docs (I could certainly be wrong!)
[02:24] <keithzg> Simply having a "User=keithzg" and plonking them down in /etc would certainly be the saner and easier approach!
[02:25] <mason> keithzg: So, I was thinking of podman, and found this: https://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html
[02:25] <mason> keithzg: I'm not sure what version of systemd is required for this to work, but skim that and scroll down at some point to "Installation of generated systemd unit files"
[02:26] <mason> RHEL 8 does it. Presumably newer Ubuntu does it. Not sure the best way to find out what's enabled and when.
[02:28] <keithzg> mason: Yeah that definitely mentions the same thing I figured was my silver bullet, `loginctl enable-linger <username>`, then the page's last updated bits being April 2020 gives me hope that it's not *too* new of a systemd version I'd need (also I didn't get any errors spat out by loginctl...). The server in question *is* on 20.04 though, so being too old wouldn't be super surprising.
[02:30] <keithzg> (I'll definitely keep podman in mind if I find myself dealing with Docker containers again! I remember it being surprisingly iffy to get those running automatically, although some of that could easily just be my unfamiliarity with Docker haha)
[02:30] <mason> keithzg: Are you setting up ~/.config/systemd/user/foo ?
[02:31] <mason> keithzg: And I'm pretty sure it Just Doesn't Work before some point, which is probably the critical thing once you're lingering and .configging and wolpertinging and such.
[02:32] <mason> keithzg: There are some technical people here who can probably provide better answers if you stick around, anyway.
[02:41] <keithzg> mason: Yup, indeed ~/.config/systemd/user/my-thing.path and the like. And yeah I'm not going anywhere, and will be very interested if anyone else has any ideas! I may eventually just resort to User= lines and putting it in /etc like a normal person though haha
[11:29] <winshit> hi there! i am hoping somebody can help me to get grafana-server to start on port 80? i created a systemd unit override and added three lines to it:
[11:30] <winshit> CapabilityBoundingSet=CAP_NET_BIND_SERVICE , AmbientCapabilities=CAP_NET_BIND_SERVICE as well as PrivateUsers=false
[11:31] <winshit> during start of the service i still get "bind:permission denied"
[11:33] <winshit> its a ubuntu 20.04.3 lts server
[11:34] <winshit> can somebody help me with that?
[12:56] <winshit> anybody awake yet?
[12:56] <winshit> during start of the grafana-server service i still get "bind:permission denied"
[12:56] <winshit> even though i created a systemd unit override with: CapabilityBoundingSet=CAP_NET_BIND_SERVICE , AmbientCapabilities=CAP_NET_BIND_SERVICE as well as PrivateUsers=false
[12:57] <winshit> my understanding is that those capabilities should suffice for grafana-sever to start on port 80
[14:05] <POQDavid> Hey guys i am running latest Ubuntu server and been trying to mount a nfs drive for backup and it keeps hangs while transfering large files what mount options is better to use like defaults,sync,rsize=65536,wsize=65536 is it any good?
[22:01] <mybalzitch> BOOTS
[22:01] <mybalzitch> oops