Re: s6 talk at FOSDEM 2017: video

2017-02-06 Thread Jean Louis
On Mon, Feb 06, 2017 at 02:40:35PM -0500, Steve Litt wrote: > come with plenty of examples and enough redundancy that even the most > unfamiliar can understand exactly what you're talking about. If I may interfere, s6 supervision is not quite adequate for most unfamiliar, and you are also not in

Re: How to trap ctrl-alt-del?

2016-11-26 Thread Jean Louis
Now I wonder how to practically implement the -s option, should I just give it something like "sudo s6-poweroff"? On Fri, Nov 25, 2016 at 12:17:24PM +0300, Jean Louis wrote: > Now I found a solution > http://www.mail-archive.com/supervision@list.skarnet.org/msg01038.html > > Thank you

How to trap ctrl-alt-del?

2016-11-25 Thread Jean Louis
tem nicely shuts down? Jean Louis

Re: [announce] Release 0.2 of rc-shim

2016-11-13 Thread Jean Louis
Did you forget the link? And s6 scripts, just taught me to think myself, so I have adapted everything to work nicely on my system, and rc-shim should help me then not to think... :-) Jean On Sun, Nov 13, 2016 at 11:58:26AM -0800, Avery Payne wrote: > I'm pleased to announce the release of

Re: Any tool in s6, to check a mountpoint?

2016-11-02 Thread Jean Louis
Thank you for idea. On Tue, Nov 01, 2016 at 11:18:14AM -0700, Colin Booth wrote: > On Nov 1, 2016 9:54 AM, wrote: > > > > Is there any tool in s6 that can check for a mountpoint? Or any other > > method? > > > > Jean > Does mountpoint from util-linux not work for you? I've done

Re: nosh per-user service management

2016-12-12 Thread Jean Louis
, they can install userbase daemontools or similar. If they know how. So great majority do not know how. That is why they need help of system administrators. Jean On Sun, Dec 11, 2016 at 06:18:13PM +, Jonathan de Boyne Pollard wrote: > Jean Louis: > > > So, placing user daemons into

Re: GNU Emacs now runs in foreground

2016-12-03 Thread Jean Louis
Hello Jonathan, Now when I use s6, I don't want to switch, maybe on some other computers I can test the nosh. It looks like good system, especially if you start providing such solutions for various daemons. On Sat, Dec 03, 2016 at 11:33:51AM +, Jonathan de Boyne Pollard wrote: > Jean Lo

Re: GNU Emacs now runs in foreground

2016-12-01 Thread Jean Louis
On Thu, Dec 01, 2016 at 12:41:18PM -0500, Steve Litt wrote: > > > > Just before some time, emacs --daemon, would go into background, so it > > was not feasible to control it with s6 scripts. Now developers changed > > it, and it is possible to invoke multiple instances by name, and still > > keep

Re: How to trap ctrl-alt-del?

2016-12-01 Thread Jean Louis
On Thu, Dec 01, 2016 at 06:15:48PM +, Laurent Bercot wrote: > > The s6-poweroff is for root user, and I have users who wish to > > poweroff, and I don't want to give them sudo rights to power off the > > computer. That is why I am searching for simple solution. > > Create a "poweroff" group.

Re: GNU Emacs now runs in foreground

2016-12-01 Thread Jean Louis
On Thu, Dec 01, 2016 at 12:54:38PM -0500, Steve Litt wrote: > On Thu, 1 Dec 2016 20:48:37 +0300 > Jean Louis <bugs@gnu.support> wrote: > > > On Thu, Dec 01, 2016 at 12:41:18PM -0500, Steve Litt wrote: > > > > > > > > Just before some time, emacs -

Re: GNU Emacs now runs in foreground

2016-12-06 Thread Jean Louis
.bashrc opening # file: terminalsopened.log is: chattr +a echo Terminal: `/bin/date +'%F-%T'` >> /home/data1/protected/tmp/terminalsopened.log 2> /dev/null So that I get a lot of how many times I open a terminal. Since 2016-01-03, until today, 18,979 times, or some 1700+ times per month, or 56 - 60 times per day. Jean Louis

Re: How to trap ctrl-alt-del?

2016-12-05 Thread Jean Louis
Thank you. How could I forget simple permissions? Now I am using it that way. On Thu, Dec 01, 2016 at 06:15:48PM +, Laurent Bercot wrote: > > The s6-poweroff is for root user, and I have users who wish to > > poweroff, and I don't want to give them sudo rights to power off the > > computer.

GNU Emacs now runs in foreground

2016-12-01 Thread Jean Louis
tected/bin:/bin:/usr/bin:/opt/texlive/2015/bin/x86_64-linux:/opt/jdk/bin:/opt/qt4/bin:/opt/qt5/bin" } backtick -n LC_ALL { echo "en_US.UTF-8" } /usr/bin/screen -l -S emacs -D -m -- /usr/bin/emacs --user admin --chdir /home/data1/protected Jean Louis

Re: How to trap ctrl-alt-del?

2016-12-01 Thread Jean Louis
is ACPI-enabled, you can also configure acpid to spawn > s6-poweroff(8) when the power button is pressed, so you may push the > button to power off your machine. > > [1] <http://skarnet.org/cgi-bin/archive.cgi? > 2:mss:1377:201608:hiocpcghpahbaiedeihc>. > > O

Re: How to trap ctrl-alt-del?

2016-12-01 Thread Jean Louis
wrote: > Try s6-linux-init [1]; you can modify the scripts in the `.s6-svscan' > directory according to your requirements. > > [1] <http://skarnet.org/software/s6-linux-init/>. > > On Sat, Nov 26, 2016 at 03:10:32PM +0300, Jean Louis wrote: > > Now I wonder how to pract

s6-ftrigrd: fatal: unable to flush asyncout: Broken pipe

2017-01-08 Thread Jean Louis
of starting acpid, as below good one? I don't need any output, but I do get it. #!/bin/execlineb -P redirfd -wnb 1 /run/service/s6-svscan-log/fifo redirfd -wnb 2 /run/service/s6-svscan-log/fifo /usr/sbin/acpid -d Jean Louis

Re: s6-ftrigrd: fatal: unable to flush asyncout: Broken pipe

2017-01-08 Thread Jean Louis
Thank you. I will let you know by next reboots how it works (not to turn off now and reboot on the low, solar powered battery). Jean On Sun, Jan 08, 2017 at 09:58:35AM +, Laurent Bercot wrote: > > redirfd -wnb 1 /run/service/s6-svscan-log/fifo > > redirfd -wnb 2

Need help with redirfd, to s6-echo

2016-12-30 Thread Jean Louis
perfectly in /etc/s6-rc/services/disable-interrupt/up redirfd -u 1 /sys/firmware/acpi/interrupts/gpe06 s6-echo disable I wish to echo those lines into register file. I am doing it wrong, but what? Jean Louis

s6-svscanboot, how to exit?

2017-07-14 Thread Jean Louis
Hello, I have used daemontools for years and svscanboot from rc.local Now I have set rc.local to be started from systemd, as it is on server, as I need only supervision. And I see the example script s6-svscanboot in s6 package. I use it so as below. rc.local: #!/command/execlineb -P

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 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-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: >

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 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. &g

Re: How can I preserve TMPDIR environment in screen?

2017-07-16 Thread Jean Louis
have a wrapper script > that does this. > > Jean Louis <bugs@gnu.support> writes: > > Hello, > > > > I am using screen in following peculiar manner, down below. > > > > And I am trying to test it to change the TMPDIR variable. > > > &g

How to set TMPDIR environment for user in s6-rc?

2017-07-16 Thread Jean Louis
Hello, Whatever I do, I get all other environment variables in Emacs, but not the TMPDIR. I get MAILDIR for example but not TMPDIR. Is TMPDIR for some reason deleted? Jean /etc/s6-rc/services/admin:emacs file: #!/bin/execlineb -P if { s6-test -d /home/data1/protected/Work } s6-setuidgid

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-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 <bugs@gnu.support> wrote: > > > Hello Jonathan, > > > > On Sat, Jul 15, 2017 at 02:47:39PM +0100, Jonathan de Boyne Pollar

How to run s6-svscan in user space

2017-07-22 Thread Jean Louis
Hello, I have these files: ~/Programming/services/cron cron/run: executable #!/bin/execlineb -P /home/data1/protected/bin/lisp /home/data1/protected/Programming/git/RCDBusiness/lib/lisp/cron/cron.lisp cron/type: longrun and I can run s6-svscan in the dir just fine. But it does not run the

Re: s6 as a systemd alternative

2017-06-26 Thread Jean Louis
On Mon, Jun 26, 2017 at 04:02:47PM +0200, Istvan Szukacs wrote: > Hi, > > I have a crazy question about s6. Would it be possible to make systemd > compatible? This question might sound stupid at first but here is the > reasoning: > > - we have services with systemd service files already >

Re: execlineb's import conflicts with ImageMagick

2017-10-22 Thread Jean Louis
Alright, thank you, that is solved. On Sun, Oct 22, 2017 at 07:06:13PM -0300, Guillermo wrote: > Hello, > > 2017-10-22 18:01 GMT-03:00 Jean Louis: > > > > The ImageMagick software has the "import" command > > that is conflicting with "import" from

Re: execline-2.3.0.3 failes with ./configure --prefix=

2017-10-22 Thread Jean Louis
On Mon, Oct 23, 2017 at 04:39:38AM +, Laurent Bercot wrote: > > > ./configure --prefix=/package/admin/$(basename `pwd`) > > If you're using slashpackage, don't use --prefix. > Use --enable-slashpackage instead. If I understand it well, I am supposed to make the symlinks myself from

Re: execlineb's import conflicts with ImageMagick

2017-10-22 Thread Jean Louis
On Sun, Oct 22, 2017 at 09:32:30PM +, Charles Duffy wrote: > Given as GraphicsMagick moves "import" to a subcommand ("gm import"), you > might consider using it to avoid any conflict. Thank you for the input. I do not use GraphicsMagick (yet), and I have just tried installing skarnet tools