skalibs and related 2.0

2014-08-20 Thread Colin Booth
For those of us who use (and don't mind) slashpackage conventions for our non-packaged code, what changes are we going to need once the new s6 stuff lands? Based on prior comments I'm assuming it'll still be a viable option, but it'd be nice to know ahead of update day. Cheers! -- If the doors

Re: execline: use of define, export, unexport, import

2014-08-25 Thread Colin Booth
On Mon, Aug 25, 2014 at 7:59 PM, John Vogel jvog...@stny.rr.com wrote: If I define a variable to some value at the top level of an execline script, there seems no way to redefine it. Stripped down example: #!/command/execlineb define var 0 foreground { echo $var } define var 1 foreground

s6, execline, skalibs in FreeBSD

2015-01-31 Thread Colin Booth
Hi all, I just submitted s6 to the ports collection in Freebsd. I also added patches to update execline to 2.0.2.0 from 1.08, update skalibs to 2.2.1.0 from 0.47, and to take maintainership of both of them. All three bugs are in the request pipeline and might take some time to get through. It

Re: [PATCH] examples: Fix syslog LOGSCRIPT

2015-03-03 Thread Colin Booth
On Mar 3, 2015 2:35 PM, Olivier Brunel j...@jjacky.com wrote: Log lines are actually prefixed with uids from $IPCREMOTEEUID $IPCREMOTEEGID, so they should be acocunted for in the regexs. Damn, you're right. Also note the need to use \s because, AFAIK, there's no way to use spaces in the

Re: s6, execline, skalibs in FreeBSD

2015-02-23 Thread Colin Booth
The s6 port was accepted this morning so the ports collection now has: skalibs-2.3.0.0 execline-2.0.2.1 s6-2.1.1.1 I'm unlikely to port any of the other skaware packages in the near future since these are the only three that I run with any regularity on bsd. Laurent, I forewent anything related

Re: s6-rc design ; comparison with anopa

2015-04-26 Thread Colin Booth
Apologies to Laurent who is about to get this one twice. On Mon, Apr 27, 2015 at 12:48:58AM +0200, Laurent Bercot wrote: I'll probably add an automatic bundling feature for a daemon and its logger; however, a oneshot to create a chroot directory? That's too specific. That's not even

Re: Preliminary version of s6-rc available

2015-08-22 Thread Colin Booth
On Fri, Aug 21, 2015 at 6:36 PM, Guillermo gdiazhartu...@gmail.com wrote: Hello, I have the following issues with the current s6-rc git head (last commit 8bdcc09f699a919b500885f00db15cd0764cebe1): (snip) I run my s6 stuff in slashpackage configuration so I missed the s6-fdholder-filler

Re: skaware manpages?

2015-08-22 Thread Colin Booth
On Fri, Aug 21, 2015 at 4:33 PM, Laurent Bercot ska-skaw...@skarnet.org wrote: On 22/08/2015 01:03, Buck Evan wrote: Actually, apparently HTML is the preferred format, so we're good. https://www.debian.org/doc/debian-policy/ch-docs.html#s12.4 Yeah, in the 12.1 section they still say that

s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
Hey all, I've reconfigured one of my debian systems to boot with s6-init/s6-rc and while trying to debug a timing issue that I think was my own fault (my all services bundle didn't contain my ersatz single-user bundle). That mucked up a bunch of timing since half of the initialization stuff

Re: s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
On Thu, Aug 20, 2015 at 1:16 PM, Colin Booth cathe...@gmail.com wrote: By the way, I've found a maybe-bug that, if real, is pretty severe. `s6-rc -d change all ; some stuff ; s6-rc -u change all' has caused my s6-init + s6-rc testbed system to remove the control pipe for my pid 1 s6-svscan. I

Re: s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
On Thu, Aug 20, 2015 at 2:35 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: I can't grep the word addition in my current git, either s6 or s6-rc. Are you sure it's not a message you wrote? Can you please give me the exact line you're running and the exact output you're getting? Thanks,

Re: s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
On Thu, Aug 20, 2015 at 1:57 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: Just don't have a notification-fd file. s6-rc will assume your daemon is ready as soon as the run script is started. It may spam you with a warning on high verbosity levels, but that's it. :) Yeah, this is for the

Re: s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
On Thu, Aug 20, 2015 at 10:24 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: Oh, the protocol is complicated too. If I start to implement it, there's no stopping, and I'll be running behind systemd every time they add something to the protocol, which is exactly what I don't want to do.

Re: s6-rc - odd warn logging and a best practices question

2015-08-20 Thread Colin Booth
On Thu, Aug 20, 2015 at 8:44 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: In that case, yes, if { init } if { notification } daemon is probably the best. It represents service readiness almost correctly, if service includes the initialization. Cool. Not the most elegant but good to

Bug in ucspilogd v2.2.0.0

2015-08-09 Thread Colin Booth
Hi Laurent, I'm pretty sure some change in skalibs v2.3.6.0 broke some types of message handling in ucspilogd. Specifically, a computer I have running skalibs v2.3.5.1 and s6 v2.1.6.0 is able to read messages sent via the logger command, whereas a computer I have running skalibs v2.3.6.0 and s6

Re: s6-rc plans (was: Build break in s6-rc)

2015-08-13 Thread Colin Booth
On Thu, Aug 13, 2015 at 9:46 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: Oh, and btw, I'll have to change s6-rc-init and go back to the the directory must not exist model, and you won't be able to use a tmpfs as live directory - you'll have to use a subdirectory of your tmpfs. Ah

Re: Build Break in s6-rc

2015-08-13 Thread Colin Booth
On Thu, Aug 13, 2015 at 9:37 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: Eh... keep a backup of your current source, if you're using it in a half-serious environment. The current version uses automatically generated services, and the scripts haven't been tested yet, it's the first

Re: Build Break in s6-rc

2015-08-13 Thread Colin Booth
On Thu, Aug 13, 2015 at 11:40 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: You like to play with fire. :) Until it's released, it's not production-ready by any means. Just making sure you're very much aware of that. It's how I roll. Plus the backout path to a functional system takes a

Re: Preliminary version of s6-rc available

2015-07-14 Thread Colin Booth
On Mon, Jul 13, 2015 at 3:20 PM, Laurent Bercot ska-skaw...@skarnet.org wrote: Ah, so that's why you didn't like the must not exist yet requirement. OK, got it. Yeah, mounting another tmpfs inside the noexec tmpfs can work, thanks for the idea. It's still ugly, but a bit less ugly than the

Re: Preliminary version of s6-rc available

2015-07-19 Thread Colin Booth
On Fri, Jul 17, 2015 at 10:13 AM, Claes Wallin (韋嘉誠) skar...@clacke.user.lysator.liu.se wrote: On 17-Jul-2015 12:49 am, Colin Booth cathe...@gmail.com wrote: Depending on your cron, users might be able to simply put an @reboot s6-svscan in their user crontab. I don't see many drawbacks

Re: Preliminary version of s6-rc available

2015-07-12 Thread Colin Booth
On Sat, Jul 11, 2015 at 10:59 PM, Laurent Bercot ska-skaw...@skarnet.org wrote: So I decided to publish what's already there, so you can test it and give feedback while I'm working on the rest. You can compile service definition directories, look into the compiled database, and run the

Re: s6-rc - odd warn logging and a best practices question

2015-08-28 Thread Colin Booth
On Fri, Aug 21, 2015 at 2:11 AM, Laurent Bercot ska-skaw...@skarnet.org wrote: Wow. Is it a mount -o remount, or a umount followed by a mount ? If a -o remount has this effect on file handles, then it's probably worth reporting to the kernel guys, because it's insane. Even if the script

Re: s6-svstat "want up"

2015-09-08 Thread Colin Booth
On Tue, Sep 8, 2015 at 1:43 PM, Colin Booth <cathe...@gmail.com> wrote: > On Tue, Sep 8, 2015 at 1:36 PM, Buck Evan <b...@yelp.com> wrote: >> Below is a silly toy service that I've used to prove out some of the s6 >> behavior. >> >> $ cat date/run >> #

Re: s6-rc-update initial findings

2015-09-14 Thread Colin Booth
On Sun, Sep 13, 2015 at 11:25 PM, Colin Booth <cathe...@gmail.com> wrote: > Things it didn't do right: > Put the links back into /run/service > > That last one was a bit surprising, and is totally fine until the next > time I (or something else) issues `s6-svscanctl -an /run/

Re: s6-rc shutdown timing issue

2015-09-13 Thread Colin Booth
On Sun, Sep 13, 2015 at 2:34 PM, Laurent Bercot wrote: > > I'm afraid there's no real solution to the stragglers problem, and the > only safe approach is to keep everything mounted all the time and only > perform the unmounts in stage 3 after everything else has been

Re: [announce] s6-rc: a s6-based service manager for Unix systems

2015-09-23 Thread Colin Booth
On Wed, Sep 23, 2015 at 7:54 PM, Avery Payne wrote: >> I can send you my (almost) 100% functional Debian rcS stuff replacement >> stuff that I use to run one of my systems. If you can figure out why the >> acpid keyboard hooks don't work after start, that'd be great.

Re: [announce] s6-rc: a s6-based service manager for Unix systems

2015-09-24 Thread Colin Booth
On Thu, Sep 24, 2015 at 2:23 AM, Laurent Bercot <ska-skaw...@skarnet.org> wrote: > On 24/09/2015 02:55, Colin Booth wrote: >> rc scripts are easy peasy: figure out dependency order, write >> oneshots. The only one that was an issue is the udev script, and I >>

Re: Rewriting a shell script

2015-11-30 Thread Colin Booth
On Mon, Nov 30, 2015 at 12:14 AM, Laurent Bercot wrote: > Hm ? I don't think awk understand delimiters at all. It only > takes a single argument (in this case). The quotes are a shell > thing. > Delimiters was the wrong word. I was poorly trying to say that it wanted its

Re: emptyenv and default path

2016-02-06 Thread Colin Booth
On Sat, Feb 6, 2016 at 10:41 AM, Brett Neumeier wrote: > Hi, > > I'm trying to get a handle on execline and have found some behavior that > perplexes me. I'm hoping someone can clarify what's going on! > You came to the right place! > > If I change the first foreground

Re: s6-linux-init: /etc/rc.tini not executed

2017-02-02 Thread Colin Booth
On Thu, Feb 2, 2017 at 4:43 AM, Guillaume Perréal wrote: > Hello, > > I finally have a working initramfs and know the system is happily booting. I > am slowly adding one-shots and services to build a functional server > > However, it seems there is an issue with poweroff : > >

Re: Man pages

2017-03-31 Thread Colin Booth
On Fri, Mar 31, 2017 at 6:02 AM, Guillaume Perréal wrote: > Pandoc (http://pandoc.org/) might be useful. The out-of-the-box template is > ugly, but nonetheless usable. > That's what I was using but the post-processing editing overhead was too high without digging in and

Re: Man pages

2017-03-26 Thread Colin Booth
On Mar 25, 2017 10:01 PM, "S. Gilles" wrote: > > This is a rather silly question, but the other day I wanted to look > up the syntax of some command or other, but had no internet connection. > I had always assumed that the online documentation was generated > from manpages,

Re: Building execline on Ubuntu 17.04

2017-04-15 Thread Colin Booth
On Sat, Apr 15, 2017 at 03:12:11PM +0200, En Nu wrote: > I tried: > > sudo apt-get install skalibs-dev > git clone git://git.skarnet.org/execline > cd execline > ./configure > > I get this error running the above: > > ./configure: error: /usr/lib/skalibs/sysdeps is not a valid sysdeps directory

Re: difference between bundles and dependencies in s6-rc

2017-05-26 Thread Colin Booth
On Fri, May 26, 2017 at 03:58:15PM -0500, Brett Neumeier wrote: > Hello Skaware! > > I'm in the process of setting up s6 and s6-rc as the init and service > management systems for my linux system, and am curious: is there a > significant functional difference between a bundle service, and a

Re: .env file handling

2017-10-23 Thread Colin Booth
ut it parses a multi-line K=V style file into something that s6-envdir can handle. Oh, and it should go without saying, but all these script snippets assume that you're calling them as `script /path/to/envfile' Cheers! -- Colin Booth

Re: Where does /dev get mounted?

2017-10-30 Thread Colin Booth
at mounts /dev. What am I missing? Assuming a distro, the initramfs handles that. It also handles mounting /sys and running an initial udev coldplug cycle. > > Cheers! > > Brett > > -- > Brett Neumeier (bneume...@gmail.com) -- Colin Booth

Re: [announce] mdevd-0.0.1.0 - a mdev-compatible uevent manager

2018-01-08 Thread Colin Booth
pe f' should only find regular files, not symlinks. I don't believe it will even recurse into symlinks by default so deduplication shouldn't be necessary. -- Colin Booth

Re: s6-svscan - controlling terminal semantics and stdin use

2018-01-01 Thread Colin Booth
impact anything. If you want to close stdin, do it before execing into s6-svscan (or as part of the call if using shell). > > What do you think? > > Earl -- Colin Booth

Re: When running from a script execlineb does not use separated args

2018-07-30 Thread Colin Booth
mething be done about that problem? > > Document that perk, maybe? Unfortumately this is impossible to fix short of redoing the shebang interpretation in Unix. You should be able to see similar behavior in shell scripts by setting #!/bin/sh -e -x as your shebang (or something similar). -- Colin Booth

Re: Debianization

2018-04-20 Thread Colin Booth
our source and compileds. Beyond that, everything either already exists in debian, or is in the dependency chain for s6-rc (s6, execline, maybe the s6-*-utils, etc). > > SZÉPE Viktor, honlap üzemeltetés / Running your application > https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md Cheers! -- Colin Booth

Re: [announce] execline-2.4.0.0

2018-04-01 Thread Colin Booth
eful, more complete scripts without > hitting execline's inherent limitations. The benefits are numerous. > > I sincerely hope this change will help smooth the learning curve of > the execline syntax, and increase adoption of the language among > newbies and die-hard Unix veterans alike. > > https://skarnet.org/software/execline/ > git://git.skarnet.org/execline > > Enjoy, > Bug-reports welcome. > > -- > Laurent > -- Colin Booth

Re: Question about enable-absolute-paths option

2018-09-03 Thread Colin Booth
n order to flush the default environment in stand-alone execline scripts, but it will work in a pinch since all execline utilities will fail back to the compiled-in defaults if $PATH is unavailable. -- Colin Booth

Re: s6-rc-compile doesn't include 'check' script

2018-11-30 Thread Colin Booth
for a feature request in s6-rc? It should be included as part of the general payload set that gets copied with data/ > > Regards, > > Justin Cheers! -- Colin Booth

Re: execline "importas" documentation question

2018-09-16 Thread Colin Booth
On Sun, Sep 16, 2018 at 08:35:57PM -0500, Brett Neumeier wrote: > On Sun, Sep 16, 2018 at 5:49 PM Colin Booth wrote: > > > I think I know what is going on. I assume you're running this on the > > commandline? If so, the shell is splitting prefix${FOO}postfix into > > thre

Re: execline "importas" documentation question

2018-09-16 Thread Colin Booth
rds ("prefix", "$FOO", "postfix"), then importas is deleting the middle one. If you write this as a full execline script like so: $ execlineb -c 'importas FOO FOO echo prefix${FOO}postfix' you'll see the full word deletion in action. Cheers! -- Interesting. I get the expected behavior. Colin Booth

Re: sdnotify-wrapper docs clarification

2019-02-01 Thread Colin Booth
email five sentences or less? > A: http://five.sentenc.es/ > May take up to five days to read your message. If it’s urgent, call me. -- Colin Booth

Re: cross-compile skalibs

2019-09-13 Thread Colin Booth
t mind NIH is deadly broken for > configure stages :) > > Cheers > -- > Jens Rehsack - rehs...@gmail.com > -- Colin Booth

Re: Question About the Purpose of s6-rc

2020-03-20 Thread Colin Booth
h slightly slower) than using s6-svwait directly. -- Colin Booth

Re: Question About the Purpose of s6-rc

2020-03-19 Thread Colin Booth
or s6-svstat -o ready and an exit on failure, or whatever. -- Colin Booth