libera/#devuan-dev/ Saturday, 2020-12-05

bgstack15anybody here know how dpkg or debhelper is supposed to handle creating system user accounts for a service?01:55
bgstack15perusing man debhelper briefly didn't help, but I can go search harder on the Internet01:55
bgstack15or just go look at apache2 and similar.01:55
fsmithredbgstack15, my guess would be to script it in postinst02:00
bgstack15yes, that's what I was generally afraid of02:01
fsmithredlol02:01
bgstack15Those are amazingly idempotent... NOT02:01
bgstack15I could have sworn I once saw how packaging systems handle stuff like this, particularly in dpkg.02:01
fsmithredit's possible02:02
bgstack15in the httpd rpm, it's part of the maintainer scripts.02:04
fsmithredI'm not familiar with the inner workings of rpm02:05
fsmithreddoes the maintainer script do something like the pre/postinst scripts in a deb?02:06
bgstack15I used to build rpms day in and day out, but nowadays my skills are in building dpkgs.02:06
bgstack15Yes, pre/postinst scripts are called "maintainer scripts"02:06
bgstack15I thought that was one way to name them in dpkg as well.02:06
bgstack15but it's the same concept, regardless of the name.02:06
fsmithredmaybe you saw this and missed the second 'd'?  dh_installsystemduser02:07
bgstack15           install systemd unit files02:08
bgstack15not what i'm looking for, unfortunately02:08
bgstack15oh, for apache2 specifically, package base-passwd defines user www-data.02:15
bgstack15not helpful for just a random service though, that doesn't need to run as root02:16
rrqbgstack15: you've probably been there already but maybe not ... https://unix.stackexchange.com/questions/47880/how-debian-package-should-create-user-accounts02:51
bgstack15haha, I bookmarked that probably 30 minutes ago, thank you!03:06
bgstack15so is there any particular reason start-stop-daemon doesn't use the pidfile specified in --pidfile?03:37
bgstack15Maybe I'm missing something...03:37
bgstack15but SELinux is off!03:37
bgstack15ah, 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
bgstack15https://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/!