rkta | Are there some recommended reads on how to write an init script? | 18:15 |
---|---|---|
rwp | There are a few different ways to go with writing in an init script. Because recommendations have changed over the years. | 18:24 |
rwp | I like the older /etc/init.d/skeleton file example which could be used to copy and then modify. | 18:24 |
rwp | The 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 |
rwp | Since 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 |
rwp | See also /etc/init.d/README | 18:27 |
furrymcgee | there is lsb documentation and man init-d-script + man insserv | 18:28 |
rkta | rwp: The README points to /usr/share/doc/debian-policy which doesn't exist on my system | 18:29 |
rwp | That's in the debian-policy package and can be installed. | 18:30 |
rwp | But as furrymcgee suggested see: man 5 init-d-script | 18:30 |
rwp | Basically 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 |
rwp | If something becomes more complicated then pastebin to show us what you have and people will help. | 18:32 |
rkta | I more looking for some sort of FAQ or best practices/pitfalls guide. But I'll make sure, to read those man pages. | 18:32 |
rkta | was* | 18:32 |
rwp | I'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 |
rwp | https://lists.debian.org/debian-infrastructure-announce/2022/02/msg00000.html | 18: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 |
rwp | And also more background on salsa offline: https://lists.debian.org/debian-devel/2022/03/msg00016.html | 18:34 |
rwp | used____, 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 it | 18: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 out | 18: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 hurry | 18:36 |
rwp | rkta, This might help with background: https://www.debian.org/doc/debian-policy/ch-opersys.html#starting-system-services | 18:37 |
rwp | I 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 |
rwp | used____, 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 |
rkta | rwp: 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 |
rwp | It'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 |
rwp | The 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 |
rwp | used____, 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 |
rkta | I already struggled grepping the web, because everything is about systemd or about moving from sysvinit to systemd. | 18:42 |
rwp | rkta, 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 |
rwp | But I looking around I don't immediately find great documentation that I can point you to. :-( | 18:45 |
rwp | I 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 |
rkta | rwp: 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 |
fsmithred | I can ctrl-alt-F1 and log in when the desktop screen is locked | 18:47 |
rwp | fsmithred, 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 |
rwp | used____ ^^ Note fsmithred's suggestion. | 18:48 |
rwp | if Cntrl-Alt-F1 is busy then try Cntrl-Alt-F2 and so on to find another console login. | 18:50 |
fsmithred | it's linux. If you can't fix a problem there's probably more than one way to work around it. | 18:50 |
fsmithred | yeah, I usually suggest F2 | 18:50 |
rwp | I 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 |
rwp | But I think the default default is to run X on vt7 I think, maybe. That's a definite maybe. | 18:51 |
rwp | afk time for me again bbiab | 18:52 |
fsmithred | I think it switched to F1 for some time and then moved back to F7 (or maybe F1 with systemd?) | 18:52 |
bb|hcb | Debian salsa is back online :) | 20:44 |
rkta | thanks for the heads up | 20:59 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!