Some glitches on skarnet.org

2016-08-11 Thread Casper Ti. Vector
* On , `Alternatively, you can checkout a copy of the skalibs "git repository' (yes, the double quote `"' is incorrect). * On the cgit web interface, for example , the code section displays

Re: Some glitches on skarnet.org

2016-08-13 Thread Casper Ti. Vector
A shameless plug: might be of some help in understanding the protocol. The script (169 SLOC as of now) is not be directly usable to you since it is written in python, but I tried quite hard to make the workflow as clear and concise as possible :) On Sat,

Re: s6-linux-init, alpine linux, and initramfs

2017-01-31 Thread Casper Ti. Vector
On Tue, Jan 31, 2017 at 09:35:55PM +, Laurent Bercot wrote: > It won't do it in every case: parsing /proc/cmdline is hazardous and > much more difficult than it appears. (There could be quotes, and quoted > spaces, in the elements.) We had a discussion about this on the Alpine > development

Re: s6-linux-init, alpine linux, and initramfs

2017-02-01 Thread Casper Ti. Vector
Oh, now I understand what you and Laurent meant: apart from `/proc/cmdline', the kernel also exports its boot parameters (except for `root=...', parameters without a value and possibly something else) into the environment of the init process. This is really useful when not all parameters need to

Re: s6-rc:

2017-01-27 Thread Casper Ti. Vector
Using the fifo trick [1]? As a side note, though the s6 documentation considers it "dirty", similar methods [2] are widely used for process synchronisation in CSP-style concurrency. [1] . [2]

Re: execline and $0-based stuff

2017-02-21 Thread Casper Ti. Vector
An example of my attempt, already working on at least 2 Alpine machines: > $ ls -d /etc/s6-rc/main/*getty* > /etc/s6-rc/main/getty.tty1 > $ cat /etc/s6-rc/base/getty/run > #!/bin/rc -e > exec >[2=1] > . /etc/s6-rc/bin/fn.rc > exec `{cdr $self} 38400 $name linux > $ cat /etc/s6-rc/bin/fn.rc >

Re: Configuration and scripts location

2017-02-22 Thread Casper Ti. Vector
If you differentiate between instances by using a naming convention like `service.instance', you can let the `run'/`finish' scripts defer the paths to instance-specific config files/directories. In this way, you can orthogonalise service configs from service definitions, and have instanced

Re: Some glitches on skarnet.org

2016-10-28 Thread Casper Ti. Vector
Found this just now: : pure C, no python or shell; developed by the OpenBSD people and already included in OpenBSD, which at least makes the code not smell very insecure :) Nevertheless, that client is not mininalistic, which might be a little annoying for

s6-linux-init doc bug

2016-10-15 Thread Casper Ti. Vector
(Too lazy to start another thread... :|) In line 57 of `s6-linux-init:doc/upgrade.html', `dir/init' should be changed to `dir/init'. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C

Re: Problems with recent versions of s6-rc

2017-07-04 Thread Casper Ti. Vector
The s6-rc-compile segfault and the s6-rc failure still occur with `s6-rc 0.2.1.1-r0' from the alpine testing repository. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C

Re: Problems with recent versions of s6-rc

2017-07-04 Thread Casper Ti. Vector
I just found myself being extremely careless this time: when I said "the alpine testing repository", I really meant `edge/testing', but s6-rc v0.2.1.1 should be in `edge/main', so probably I just installed s6-rc v0.2.0.1 from `v3.6/main', and rediscovered the original problems with the old alpine

Re: Using execline in place of shell for s6/s6-rc setup: environment variables?

2017-05-19 Thread Casper Ti. Vector
2VFNsNVE> Attached are their checksums (plus that for the `alpine-s6rc-conf' tarball) signed with my OpenPGP key. On Sat, May 20, 2017 at 12:20:30PM +0800, Casper Ti. Vector wrote: > follow the README in the tarball -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077

Re: Using execline in place of shell for s6/s6-rc setup: environment variables?

2017-05-19 Thread Casper Ti. Vector
For variety, I also present my result of doing this using the rc(1) shell (the Byron Rakitzis implementation [1]). Boot up an Alpine Linux in a virtual machine, follow the README in the tarball, and you would be able to get a working s6/s6-rc/rc (well the name...) based system. It is admittedly

Re: Using execline in place of shell for s6/s6-rc setup: environment variables?

2017-05-19 Thread Casper Ti. Vector
:( On Sat, May 20, 2017 at 12:51:13PM +0800, Casper Ti. Vector wrote: > Attached are their checksums (plus that for the `alpine-s6rc-conf' > tarball) signed with my OpenPGP key. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227

Re: Using execline in place of shell for s6/s6-rc setup: environment variables?

2017-05-20 Thread Casper Ti. Vector
Something strange happened to my previous mail: the `SHA512SUMS.asc' file only had one line saying `Version: 1'; perhaps a problem with mutt. The correct version is now attached. And I am very sorry for these spammy mails :( On Sat, May 20, 2017 at 12:51:13PM +0800, Casper Ti. Vector wrote

Re: Some glitches on skarnet.org

2017-05-23 Thread Casper Ti. Vector
By "full upgrade", I actually meant "no downgrading" instead of "disabling HTTP", so I take your answer as a "yes" :) After some summarising, I found the list of skarnet.org self-links to be fairly trivial: * Links in skarnet.org packages: I note that `skarnet.org' links have just been fixed,

Re: Some glitches on skarnet.org

2017-05-24 Thread Casper Ti. Vector
I see; thanks... On Wed, May 24, 2017 at 05:44:20PM +, Laurent Bercot wrote: > I won't change external links, however: unless I'm given a HTTPS link > in the first place, I can't guarantee that external sites will honor > HTTPS every time. -- My current OpenPGP key:

Problems with recent versions of s6-rc

2017-05-24 Thread Casper Ti. Vector
* s6-rc-compile segfault: boot up a VirtualBox VM with (for reproducibility) `alpine-standard-3.6.0-x86_64.iso', log in as root (no password needed), install s6-rc (v0.2.0.1 as of now) from the Alpine v3.6 repository, uncompress the attached tarball, and run $ rm -rf compiled &&

Re: difference between bundles and dependencies in s6-rc

2017-05-26 Thread Casper Ti. Vector
. On Fri, May 26, 2017 at 03:58:15PM -0500, Brett Neumeier wrote: > If there is a functional difference -- what is it? -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
arning: unable to start start service s6rc-oneshot-runner: command > exited 111 On Thu, May 25, 2017 at 12:58:30PM +0800, Casper Ti. Vector wrote: > * Incompatibility of the compiled database: s6-rc commit 543c1405 breaks > the backwards compatibility of the compiled service

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
On Thu, May 25, 2017 at 10:17:22AM +, Laurent Bercot wrote: > All the problems you report should be fixed with skalibs-2.5.1.1, which > should already be available in Alpine. Are you still experiencing issues > with skalibs-2.5.1.1 ? I experienced this when updating Alpine from v3.5.2 to

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
On Fri, May 26, 2017 at 12:15:39AM +, Laurent Bercot wrote: > When it's about debug information such as strace outputs ;) > Except that when you send a file to a mailing-list Well this is the problem I neglected: it is

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
After reboot-looping a test VM for many times, this is also reproduced successfully; attached is the log. On Thu, May 25, 2017 at 09:07:26PM +0800, Casper Ti. Vector wrote: > The issue with `s6-rc' seems to be difficult to reproduce when `s6-rc' > is debugged by strace, so I am unable to p

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
Not even in a VirtualBox VM? Seems more interesting than I thought... Attached is the logs of `s6-rc-compile' for the three cases. The issue with `s6-rc' seems to be difficult to reproduce when `s6-rc' is debugged by strace, so I am unable to produce a log for it now. On Thu, May 25, 2017 at

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
, 2017 at 09:19:26PM +0800, Casper Ti. Vector wrote: > attached is the log. -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E 8CAA B7AA 186C rc-log.tgz Description: GNU Unix tar archive

Re: Some glitches on skarnet.org

2017-05-22 Thread Casper Ti. Vector
I found HTTPS to be already supported on skarnet.org, but many links still downgrade to plain HTTP. May I request a full upgrade to HTTPS? If the answer is yes, I can provide a list of downgrading links I noted. On Sat, Aug 13, 2016 at 05:01:01PM +0800, Casper Ti. Vector wrote: > Just one m

Re: Problems with recent versions of s6-rc

2017-06-04 Thread Casper Ti. Vector
Hello, is there any progress on this issue? On Fri, May 26, 2017 at 04:00:06AM +, Laurent Bercot wrote: > Tomorrow I'll report that to the Alpine devs, and investigate what > could have gone wrong. And I'll have to either pay more attention to > Alpine quality control, or drop maintenance

Re: Problems with recent versions of s6-rc

2017-06-04 Thread Casper Ti. Vector
Thanks. Seems I need to pin the s6-related packages at alpine 3.5.x on my servers for a longer time... On Sun, Jun 04, 2017 at 11:21:30AM +, Laurent Bercot wrote: > We have confirmed that it is an Alpine problem. We're not sure > exactly where the problem occurs (the usual suspect, grsec,

Re: Problems with recent versions of s6-rc

2017-05-25 Thread Casper Ti. Vector
Well I think pastebins really tend to be unreliable (most importantly, content disappearing at unexpected time), so small files (whether text or binary, as long as they are relevant) are best posted directly to the mail list; and since compression saves space, tarballs and zipballs are suitable

Re: PEBKAC prevention with s6-rc

2017-09-30 Thread Casper Ti. Vector
I see; I think this version is OK, but the update seems to be absent from the git repository? On Sat, Sep 30, 2017 at 02:54:56PM +, Laurent Bercot wrote: > https://skarnet.org/software/s6-rc/upgrade.html ? -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077

Re: PEBKAC prevention with s6-rc

2017-09-30 Thread Casper Ti. Vector
I think the update makes it clear enough to me, but I did not find any update on the recompilation issue. On Sat, Sep 30, 2017 at 01:24:46PM +, Laurent Bercot wrote: > Please tell me if it makes things clearer for you, or if something more > is needed. -- My current OpenPGP key:

Re: PEBKAC prevention with s6-rc

2017-09-30 Thread Casper Ti. Vector
Thanks; I think these fixes would prevent most people from making the same mistake I made :) On Sat, Sep 30, 2017 at 07:37:26PM +, Laurent Bercot wrote: > Whoops! Sorry, fixed. :) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E

PEBKAC prevention with s6-rc

2017-09-28 Thread Casper Ti. Vector
Yesterday I finally decided to investigate the occasional broken pipe errors with `s6-rc-update' on my machines, and realised that I always used it the wrong way: # rm -rf /etc/s6-rc/db/main # Which /etc/s6-rc/compiled links to. # s6-rc-compile /etc/s6-rc/db/main /etc/s6-rc/main # s6-rc-update

Re: [announce] skarnet.org August 2017 release

2017-08-29 Thread Casper Ti. Vector
Does this mean something interesting with bugfixes in other packages? ;) On Mon, Aug 28, 2017 at 11:25:58PM +, Laurent Bercot wrote: > - Bugfixes. (No security issue involved.) -- My current OpenPGP key: RSA4096/0x227E8CAAB7AA186C (expires: 2020.10.19) 7077 7781 B859 5166 AE07 0286 227E