libera/#devuan/ Wednesday, 2022-03-02

rktaAre there some recommended reads on how to write an init script?18:15
rwpThere are a few different ways to go with writing in an init script.  Because recommendations have changed over the years.18:24
rwpI like the older /etc/init.d/skeleton file example which could be used to copy and then modify.18:24
rwpThe old one was procedural.  But in order to compete with the declarative syntax of the alternatives the skeleton was changed to be declarative using a helper script.18:25
rwpSince you are asking, probably working with the new declarative style with the helper script as is the current skeleton would make the most sense as a starting point.18:25
rwpSee also /etc/init.d/README18:27
furrymcgeethere is lsb documentation and man init-d-script + man insserv18:28
rktarwp: The README points to /usr/share/doc/debian-policy which doesn't exist on my system18:29
rwpThat's in the debian-policy package and can be installed.18:30
rwpBut as furrymcgee suggested see: man 5 init-d-script18:30
rwpBasically use the #!/lib/init/init-d-script helper interpreter, declare the path to the daemon, and that's enough for most simple things.18:31
rwpIf something becomes more complicated then pastebin to show us what you have and people will help.18:32
rktaI more looking for some sort of FAQ or best practices/pitfalls guide. But I'll make sure, to read those man pages.18:32
rktawas*18:32
rwpI'll just note in passing that a lot of the documentation exists on salsa.debian.org and salsa is offline the past couple of days.18:33
rwphttps://lists.debian.org/debian-infrastructure-announce/2022/02/msg00000.html18:33
used____Is there a way to switch keyboard layout from the xfce4 lock screen, when locked? I see none, yet sometimes when I unlock, the language set on the keyboard is not what I left it as.18:33
rwpAnd also more background on salsa offline: https://lists.debian.org/debian-devel/2022/03/msg00016.html18:34
rwpused____, Rhetorical question: If the screen is locked then how can the keyboard layout be changed?  That seems like it should not be possible.18:34
used____Should keep .tbz2 or .txz archives like Slackware does.18:34
used____rwp: some lock managers permit it18:35
* rwp thinks... "CAPS LOCK - Preventing Login Since 1980."18:35
used____rwp: specifically - using umlauts in the password and locking with English keyboard selected = locked out18:35
used____I have the opposite problem. I lock with English selected and sometimes find something else selected when unlocking.18:35
used____It COULD be me nudging the mouse when locking.18:36
used____In a hurry18:36
rwprkta, This might help with background: https://www.debian.org/doc/debian-policy/ch-opersys.html#starting-system-services18:37
rwpI did not read that through in detail but a quick skim makes me think it is still fully applicable to Devuan.18:37
used____So, no special keyboard shortcuts, right?18:38
rwpused____, I am sorry but I don't know anything about that area of the system.  I set a keyboard layout when X is started and then I never change it.  And if locked then I can't imagine how to unlock it. :-(18:39
used____...18:39
rktarwp: thanks, I'll have a look, I'll also keep an eye on salsa when it comes back. I'm not in a hurry.18:39
rwpIt's been several days already.  GitLab when I looked at it back when salsa was set up was really a mess of specific dependencies.  Given what I have heard it might be a few more days.  Or weeks...18:40
rwpThe archive.org WayBack machine is extremely useful for locating once available information that isn't online at the moment.  Just a heads up to know to look there if needed.18:41
rwpused____, As I recall it's possible to kill the screen lock process out-of-band.  That is, if you can log into your system from another system then you can ps to find your screen locker process, kill it, since it is running as you, and then unlock the screen.18:42
rktaI already struggled grepping the web, because everything is about systemd or about moving from sysvinit to systemd.18:42
rwprkta, The init script system is actually something I happen to know a lot of detail about.  I am happy to help if there are questions.18:45
rwpBut I looking around I don't immediately find great documentation that I can point you to. :-(18:45
rwpI am happy to help, review, critique init scripts.  But life is busy and I cycle on and off the keyboard and am afk a lot.  But I will usually see a question eventually and get to it.18:46
rktarwp: I'm just curious right now, I don't have a specific problem. But I'll remember your name in case I have questions :)18:47
fsmithredI can ctrl-alt-F1 and log in when the desktop screen is locked18:47
rwpfsmithred, Excellent suggestion!  Log in on the Linux vt console and then ps the lock process, kill it, and the X session should be unlocked.18:48
rwpused____ ^^ Note fsmithred's suggestion.18:48
rwpif Cntrl-Alt-F1 is busy then try Cntrl-Alt-F2 and so on to find another console login.18:50
fsmithredit's linux. If you can't fix a problem there's probably more than one way to work around it.18:50
fsmithredyeah, I usually suggest F218:50
rwpI actually have something custon on vt1 here, I run X on vt2, and so usually use vt3 for these things.  Customizations...18:51
fsmithred:)18:51
rwpBut I think the default default is to run X on vt7 I think, maybe.  That's a definite maybe.18:51
rwpafk time for me again bbiab18:52
fsmithredI think it switched to F1 for some time and then moved back to F7 (or maybe F1 with systemd?)18:52
bb|hcbDebian salsa is back online :)20:44
rktathanks for the heads up20:59

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!