Re: [Toybox] service

2015-01-05 Thread stephen Turner
> > I read that when it came out and I believe at least one thing in it was > him quoting me from earlier irc discussions on #musl. :) > > We've been butting heads for years and he _does_ often convince me I'm > wrong. Here's such an example from 2006, you'll note toybox verror_msg() > in lib/lib.c

Re: [Toybox] service

2015-01-05 Thread Rob Landley
On 01/04/2015 06:50 PM, stephen Turner wrote: > Hey Rob, Dalias wrote an article and i think i agree with it (I > admittedly may not know my out port from a hole in the ground but i have > been doing a lot of reading this weekend) where he talks about the > issues with init and pid 1. There he wrot

Re: [Toybox] service

2015-01-04 Thread stephen Turner
> I'm about half way through reading that article, but I think that's more > or less what the toybox oneit does already? > I wouldnt know, I havent seen the code yet but I was under the impression it just pulled up a term. Maybe instead of calling rc it calls a term? Guess I should check the code

Re: [Toybox] service

2015-01-04 Thread David Seikel
On Sun, 4 Jan 2015 19:50:47 -0500 stephen Turner wrote: > Hey Rob, Dalias wrote an article and i think i agree with it (I > admittedly may not know my out port from a hole in the ground but i > have been doing a lot of reading this weekend) where he talks about > the issues with init and pid 1. T

Re: [Toybox] service

2015-01-04 Thread Isaac Dunham
On Sun, Jan 04, 2015 at 05:57:16PM -0600, Rob Landley wrote: > On 01/02/2015 12:57 PM, Isaac Dunham wrote: > > However, having the tools required for init scripts done in C is > > a significant improvement; killproc, > > I need a kill -r that takes out all the descendant processes. It's on > the t

Re: [Toybox] service

2015-01-04 Thread stephen Turner
Hey Rob, Dalias wrote an article and i think i agree with it (I admittedly may not know my out port from a hole in the ground but i have been doing a lot of reading this weekend) where he talks about the issues with init and pid 1. There he wrote a like 10 line init that only did what it absolutely

Re: [Toybox] service

2015-01-04 Thread Rob Landley
On 01/02/2015 12:57 PM, Isaac Dunham wrote: > On Fri, Jan 02, 2015 at 01:20:11PM +1000, David Seikel wrote: >> On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham >> If I remember correctly, it includes most of the good stuff systemd >> claims, fast boot if all/most of the "scripts" are written in C, >

Re: [Toybox] service

2015-01-02 Thread stephen Turner
> > > You will then want to create some files: > > /etc/inittab # chmod 0644 > > /etc/init.d/rcS # chmod 0755 > > /init # chmod 0755; hack because init needs /dev > > > > Traditionally, /etc/init.d/rcS ultimately does essentially: > > f

Re: [Toybox] service

2015-01-02 Thread Rob Landley
On 01/01/2015 11:33 PM, Isaac Dunham wrote: > On Thu, Jan 01, 2015 at 03:52:17PM -0500, stephen Turner wrote: >>> >>> >>> It doesn't have to be a script, but it does have to be written to match >>> a specific set of rc scripts (the rc scripts are the shell part of >>> the init system; there's OpenR

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
On Fri, Jan 02, 2015 at 01:20:11PM +1000, David Seikel wrote: > On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham > wrote: > > > On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: > > > while doing some searches on scripting i was reminded about > > > "service" and noticed it wasn't in

Re: [Toybox] service

2015-01-02 Thread stephen Turner
> > That's not entirely true. Many years ago I wrote an implementation of > runlevel/init.d/SYS V init applets for busybox, aiming for LSB > compliance. It included the ability for the actual "scripts" > themselves to be written in any language, and included several ones > written in C as busybox

Re: [Toybox] service

2015-01-02 Thread Isaac Dunham
On Thu, Jan 01, 2015 at 03:52:17PM -0500, stephen Turner wrote: > > > > > > It doesn't have to be a script, but it does have to be written to match > > a specific set of rc scripts (the rc scripts are the shell part of > > the init system; there's OpenRC, the LFS init scripts, the Debian init > > s

Re: [Toybox] service

2015-01-02 Thread stephen Turner
On Jan 1, 2015 10:27 PM, "Rob Landley" wrote: > > On 01/01/2015 12:03 PM, stephen Turner wrote: > > > > On Jan 1, 2015 12:02 PM, "Rob Landley" > > wrote: > >> > >> On 01/01/15 08:35, stephen Turner wrote: > >> > while doing some searches on scripting i was reminded about

Re: [Toybox] service

2015-01-02 Thread Rob Landley
On 01/01/2015 12:03 PM, stephen Turner wrote: > > On Jan 1, 2015 12:02 PM, "Rob Landley" > wrote: >> >> On 01/01/15 08:35, stephen Turner wrote: >> > while doing some searches on scripting i was reminded about "service" >> > and noticed it wasn't in toybox. Is this a over

Re: [Toybox] service

2015-01-02 Thread David Seikel
On Thu, 1 Jan 2015 10:22:46 -0800 Isaac Dunham wrote: > On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: > > while doing some searches on scripting i was reminded about > > "service" and noticed it wasn't in toybox. Is this a oversight or > > not in intended feature/possible post 1

Re: [Toybox] service

2015-01-01 Thread stephen Turner
> > > It doesn't have to be a script, but it does have to be written to match > a specific set of rc scripts (the rc scripts are the shell part of > the init system; there's OpenRC, the LFS init scripts, the Debian init > scripts, the old RedHat init scripts, upstart and systemd implementions, > Sl

Re: [Toybox] service

2015-01-01 Thread Isaac Dunham
On Thu, Jan 01, 2015 at 09:35:31AM -0500, stephen Turner wrote: > while doing some searches on scripting i was reminded about "service" and > noticed it wasn't in toybox. Is this a oversight or not in intended > feature/possible post 1.0. service(8) is part of the rc scripts, of which there are mo

Re: [Toybox] service

2015-01-01 Thread Isaac Dunham
On Thu, Jan 01, 2015 at 02:47:41PM -0500, stephen Turner wrote: > > > > service(8) is part of the rc scripts, of which there are more variants > > than there are of init(8). > > > > so service is a script? ok, i thought it was a program and thought surely > we would want it in toybox if it was. Co

Re: [Toybox] service

2015-01-01 Thread stephen Turner
On Jan 1, 2015 12:02 PM, "Rob Landley" wrote: > > On 01/01/15 08:35, stephen Turner wrote: > > while doing some searches on scripting i was reminded about "service" > > and noticed it wasn't in toybox. Is this a oversight or not in intended > > feature/possible post 1.0. > > $ man service > > NAME

Re: [Toybox] service

2015-01-01 Thread Rob Landley
On 01/01/15 08:35, stephen Turner wrote: > while doing some searches on scripting i was reminded about "service" > and noticed it wasn't in toybox. Is this a oversight or not in intended > feature/possible post 1.0. $ man service NAME service - run a System V init script ... DESCRIPTION

[Toybox] service

2015-01-01 Thread stephen Turner
while doing some searches on scripting i was reminded about "service" and noticed it wasn't in toybox. Is this a oversight or not in intended feature/possible post 1.0. thanks stephen ___ Toybox mailing list Toybox@lists.landley.net http://lists.landley.