Re: s6-svscanboot, how to exit?

2017-07-16 Thread Jean Louis
On Sun, Jul 16, 2017 at 02:00:17AM -0400, Steve Litt wrote: > On Sat, 15 Jul 2017 18:53:44 +0300 > Jean Louis wrote: > > > Hello Jonathan, > > > > On Sat, Jul 15, 2017 at 02:47:39PM +0100, Jonathan de Boyne Pollard > > wrote: > > > > Type=forking > > > > > > No. > > > >

Re: s6-svscanboot, how to exit?

2017-07-16 Thread Steve Litt
On Sat, 15 Jul 2017 18:53:44 +0300 Jean Louis wrote: > Hello Jonathan, > > On Sat, Jul 15, 2017 at 02:47:39PM +0100, Jonathan de Boyne Pollard > wrote: > > > Type=forking > > > > No. > > > > > StandardOutput=tty > > > > No. > > > > > RemainAfterExit=yes > > > >

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jean Louis
On Sat, Jul 15, 2017 at 12:55:59PM -0300, Guillermo wrote: > 2017-07-14 13:00 GMT-03:00 Jean Louis: > > > > However, the VPS servers don't have much option > > left to me, I can install my own system with s6, > > or I can use the ready Debian, Ubuntu and similar. > > OK, quick summary if you are

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Guillermo
2017-07-14 13:00 GMT-03:00 Jean Louis: > > However, the VPS servers don't have much option > left to me, I can install my own system with s6, > or I can use the ready Debian, Ubuntu and similar. OK, quick summary if you are stuck with systemd but want the least possible interaction with it, and a

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jean Louis
On Sat, Jul 15, 2017 at 09:45:51AM +, Laurent Bercot wrote: > > and if I write: service s6 start (after stop), I > > can see I am still bound to console, which is for > > me as user not so clear why. For example nginx > > releases me back to console. > > This is now a systemd question, and

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jean Louis
Hello Jonathan, On Sat, Jul 15, 2017 at 02:47:39PM +0100, Jonathan de Boyne Pollard wrote: > > Type=forking > > No. > > > StandardOutput=tty > > No. > > > RemainAfterExit=yes > > No. > > > SysVStartPriority=99 > > No. I know I know, I did not read the manuals on systemd. > You're a

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jonathan de Boyne Pollard
> Type=forking No. > StandardOutput=tty No. > RemainAfterExit=yes No. > SysVStartPriority=99 No. You're a long-time daemontools user, you say. Why on Earth do you think that Type=forking is right? Why on Earth do you think that good daemons fork and exit parent? Why on Earth do you

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Laurent Bercot
and if I write: service s6 start (after stop), I can see I am still bound to console, which is for me as user not so clear why. For example nginx releases me back to console. This is now a systemd question, and you should get help with systemd user groups, not here; but I see two things that

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jean Louis
On Fri, Jul 14, 2017 at 05:51:01PM -0400, Steve Litt wrote: > So you can either do it like you are now, and if s6svscanboot goes down > your whole supervision tree goes down and stays down, or you can make a > systemd unit file for s6 and run it from there, and if s6-svscanboot > goes down it will

Re: s6-svscanboot, how to exit?

2017-07-15 Thread Jean Louis
On Fri, Jul 14, 2017 at 09:38:00PM +0100, Jonathan de Boyne Pollard wrote: > Jean Louis: > > Well I made rc-local.service > > Do not do that. Creating a two steps backwards compatibility mechanism, in > order to run s6-svscan under systemd, is daft. > > Jean Louis: > > I just used recipe from

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Steve Litt
On Fri, 14 Jul 2017 22:29:04 +0300 Jean Louis wrote: > On Fri, Jul 14, 2017 at 02:31:28PM -0400, Steve Litt wrote: > > > If you're fine with it not being supervised and insist on > > > launching s6-svscanboot from /etc/rc.local, then you want to > > > enclose all its commands

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Laurent Bercot
* http://jdebp.eu./FGA/inittab-is-history.html Eh, I should have known you had a svscan-under-systemd example on your site, Jonathan. ;) -- Laurent

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Jonathan de Boyne Pollard
Jean Louis: > Well I made rc-local.service Do not do that. Creating a two steps backwards compatibility mechanism, in order to run s6-svscan under systemd, is daft. Jean Louis: > I just used recipe from stackexchange.com You're not reading the right parts of Stack Exchange, obviously. *

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Jean Louis
On Fri, Jul 14, 2017 at 03:00:10PM -0500, Brett Neumeier wrote: > use systemd as init. (I'm also using s6/s6-rc/s6-linux-init on my own > built-from-source distribution, and prefer it *enormously*, btw). > > What I have is: > > cut here > ​[Unit] > Description=s6-svscan > > [Service] >

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Brett Neumeier
On Fri, Jul 14, 2017 at 10:58 AM, Laurent Bercot < ska-supervis...@skarnet.org> wrote: > Do you have example settings for systemd to start s6-svscan? >> > ​[..]​ > > But I'm sure somebody somewhere has such an example, and if not, it > really shouldn't be too hard, because it's a very simple

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Jean Louis
On Fri, Jul 14, 2017 at 02:31:28PM -0400, Steve Litt wrote: > > If you're fine with it not being supervised and insist on launching > > s6-svscanboot from /etc/rc.local, then you want to enclose all its > > commands in a "background { }" block, which is execline's equivalent > > of the shell's

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Steve Litt
On Fri, 14 Jul 2017 13:14:36 + "Laurent Bercot" wrote: > >The script does not "exist". That means when I do > > > >sudo service rc-local stop > > > >it stops, and when I do > > > >sudo service rc-local start > > > >it is then hanging, or running, it is fine, but

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Jean Louis
Hello Laurent, I see that as a principle, and I support it. However, the VPS servers don't have much option left to me, I can install my own system with s6, or I can use the ready Debian, Ubuntu and similar. Anyway, right now it works, even if it starts, and I interrupt it, it continues working

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Laurent Bercot
Do you have example settings for systemd to start s6-svscan? I don't, sorry. I never bothered to learn the syntax, and I kinda omitted systemd from the https://skarnet.org/software/s6/s6-svscan-not-1.html page on purpose. But I'm sure somebody somewhere has such an example, and if not, it

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Jean Louis
On Fri, Jul 14, 2017 at 01:14:36PM +, Laurent Bercot wrote: > You don't, if you want it supervised. If you want to launch s6-svscan > under systemd, you should write a proper unit file for it, so systemd > can manage it as one of its services. Well I made rc-local.service that is running

Re: s6-svscanboot, how to exit?

2017-07-14 Thread Laurent Bercot
The script does not "exist". That means when I do sudo service rc-local stop it stops, and when I do sudo service rc-local start it is then hanging, or running, it is fine, but I would like to exit back to shell on such run. Adding & on end of line is not helping. How do I make it execute