Re: Update: rpm package for utmps, skalibs.

2024-04-10 Thread Guillaume Perréal
linux, s6 use /run/service as scandir. On Redhat like linux distribution, we can discuss the best place for scandir. On Apr 10, 2024, at 13:14, Guillaume Perréal wrote: In some distributions, /run is a tmpfs so its content is lost on shutdown/reboot. If this is the case here, does it make

Re: Update: rpm package for utmps, skalibs.

2024-04-09 Thread Guillaume Perréal
Hello, In some distributions, /run is a tmpfs so its content is lost on shutdown/reboot. If this is the case here, does it make sense to alter its content on pre-install/post-uninstall phases ? (Or have I misunderstood something ?) -- Guillaume. Le 10/04/2024 à 04:58, ericwq...@qq.com a

Re: s6-svstat up, down and ready time not correct after system timestamp update.

2023-07-20 Thread Guillaume Perréal
Hello, Le 2023-07-18 à 22 h 35, Laurent Bercot a écrit : I am setuping s6 for managing services on mine Linux embedded system. Everything is fine. But I faced issue related to system datetime change. My system does not have RTC, but it has GNSS module (managed by gpsd). After GNSS get the

Re: svctl ?

2020-10-21 Thread Guillaume Perréal
Le 20/10/2020 à 14:30, Laurent Bercot a écrit : >   Yes, it is expected: it is how s6-rc-update (called by the > "svctl update" script) operates. Wait, there is a "svctl" script ? Where does it come from and what does it do ? Google could find no reference to it on https://skarnet.org/ ?

Re: execline-in-execline

2018-06-07 Thread Guillaume Perréal
As a matter of example : this scripts "rewrites" its final command depending on optional arguments. Its purpose is to restore select parts of the environment variables, uid/gid and working directory, that were saved in a directory at some point in the past.

Re: Debianization

2018-04-21 Thread Guillaume Perréal
Le 21/04/2018 à 12:28, Didier Kryn a écrit :     May I humbly ask why you don't start with Devuan (which is Debian stripped out of systemd)? Of course it is less challenging than doing the job on Debian, but it would be wholehartedly applauded and tested by the Devuan community, while you

Re: tests

2018-01-11 Thread Guillaume Perréal
Le 11/01/2018 à 16:44, Laurent Bercot a écrit :  Oh, definitely, and s6 is already used in numerous Docker containers. Most people who want to do that use the s6-overlay project: https://github.com/just-containers/s6-overlay  Some big companies (Badoo, for instance) rely on s6 to power their

Re: http://skarnet.org/toolchains/cross/ not found

2017-11-02 Thread Guillaume Perréal
Le 02/11/2017 à 07:52, Laurent Bercot a écrit :  I don't have MIPS toolchains :/  If you know the exact gcc building flags needed to make one, I can easily build one. And if you know the correct set of sysdeps to cross-build skalibs on MIPS (ramips or other), I'll add support to lh-bootstrap.

http://skarnet.org/toolchains/cross/ not found

2017-11-01 Thread Guillaume Perréal
Hello Laurent, I came across this http://skarnet.org/software/lh-bootstrap/. As I am interested, I have looked for a x86_64-to-ramips toolchain, but http://skarnet.org/toolchains/cross/ gives me a 404. The same goes for the native toolchains. Regards, -- Guillaume Perréal.

Re: .env file handling

2017-10-24 Thread Guillaume Perréal
Le 24/10/2017 à 08:28, Colin Booth a écrit : I would say that is one of the two difficulties. The other one being that execline also tries hard not to carry any overhead, which means that often times you can end up in situations where the aggressive scoping that it does makes things challenging

Re: execline misc

2017-04-17 Thread Guillaume Perréal
They could go in a page titled "how to use execline as a startup shell" but honestly I do not think many sysadmins which would use them, given few desktop/server distros ship execline in the first place. - Mail original - > De: "Laurent Bercot" > À:

Re: Man pages

2017-03-31 Thread Guillaume Perréal
Pandoc (http://pandoc.org/) might be useful. The out-of-the-box template is ugly, but nonetheless usable. Regards, Guillaume. Le 26/03/2017 à 08:18, Colin Booth a écrit : On Mar 25, 2017 10:01 PM, "S. Gilles" wrote: This is a rather silly question, but the other day I

Configuration and scripts location

2017-02-22 Thread Guillaume Perréal
r/share}/the-service-that-uses-them. Moreover, considering that the service scripts are moved around, use of absolute paths is required. What are you doing, and why ? Regards, -- Guillaume Perréal.

Re: execline and $0-based stuff

2017-02-22 Thread Guillaume Perréal
I also discovered that the "expr" command from busybox have some regexp support, e.g : expr 'match' '/some/path/getty-tty1/run' '.*/getty-\([^/]*\)/run' Exits with 0 and prints "tty1". While this doesn't print anything and exits with 1 : expr 'match' '/some/path/not-a-tty/run'

s6-linux-init, alpine linux, and initramfs

2017-01-30 Thread Guillaume Perréal
Hello there, Me again. After tweaking my Xsession for a stater, I am trying to build a VM with s6-linux-init. I am starting from Alpine Linux, because I am not into recompiling Linux and all tools from scratch (well, not yet) and this distro already provides binaries for all skarnet tools.

Re: s6-rc:

2017-01-27 Thread Guillaume Perréal
Thank you. I used a simplfied version, since I have no logging concerns: # Precreate the control FIFO s6-mkfifo -m 0600 $S6_SCANDIR/.s6-svcan/control background { if { # Block until s6-svscan starts reading its control FIFO redir -w 8

s6-rc:

2017-01-27 Thread Guillaume Perréal
Hello, Trying to use s6-rc, I have run into something that looks like a race condition between s6-rc-init and s6-svscan. The context: as a concrete project to test s6-rc, I am using it to manage my X session, mainly for setup and supervising background tasks. So I want s6-svscan to be the

s6-rc compilation issue

2017-01-24 Thread Guillaume Perréal
ure script, I am not sure how to fix it. How should it be fixed ? Best regards, Guillaume Perréal.