bgstack15 | anybody here know how dpkg or debhelper is supposed to handle creating system user accounts for a service? | 01:55 |
---|---|---|
bgstack15 | perusing man debhelper briefly didn't help, but I can go search harder on the Internet | 01:55 |
bgstack15 | or just go look at apache2 and similar. | 01:55 |
fsmithred | bgstack15, my guess would be to script it in postinst | 02:00 |
bgstack15 | yes, that's what I was generally afraid of | 02:01 |
fsmithred | lol | 02:01 |
bgstack15 | Those are amazingly idempotent... NOT | 02:01 |
bgstack15 | I could have sworn I once saw how packaging systems handle stuff like this, particularly in dpkg. | 02:01 |
fsmithred | it's possible | 02:02 |
bgstack15 | in the httpd rpm, it's part of the maintainer scripts. | 02:04 |
fsmithred | I'm not familiar with the inner workings of rpm | 02:05 |
fsmithred | does the maintainer script do something like the pre/postinst scripts in a deb? | 02:06 |
bgstack15 | I used to build rpms day in and day out, but nowadays my skills are in building dpkgs. | 02:06 |
bgstack15 | Yes, pre/postinst scripts are called "maintainer scripts" | 02:06 |
bgstack15 | I thought that was one way to name them in dpkg as well. | 02:06 |
bgstack15 | but it's the same concept, regardless of the name. | 02:06 |
fsmithred | maybe you saw this and missed the second 'd'? dh_installsystemduser | 02:07 |
bgstack15 | install systemd unit files | 02:08 |
bgstack15 | not what i'm looking for, unfortunately | 02:08 |
bgstack15 | oh, for apache2 specifically, package base-passwd defines user www-data. | 02:15 |
bgstack15 | not helpful for just a random service though, that doesn't need to run as root | 02:16 |
rrq | bgstack15: you've probably been there already but maybe not ... https://unix.stackexchange.com/questions/47880/how-debian-package-should-create-user-accounts | 02:51 |
bgstack15 | haha, I bookmarked that probably 30 minutes ago, thank you! | 03:06 |
bgstack15 | so is there any particular reason start-stop-daemon doesn't use the pidfile specified in --pidfile? | 03:37 |
bgstack15 | Maybe I'm missing something... | 03:37 |
bgstack15 | but SELinux is off! | 03:37 |
bgstack15 | ah, it has to do with the fact that it's a python script so the process name is of course not the script name. | 03:46 |
bgstack15 | https://www.projectclearwater.org/using-start-stop-daemon-with-the-python-interpreter/ | 03:46 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!