harish badrinath | 26 Apr 17:15
Picon

What is the process group hack

Hello,

I Could not figure out what "process group hack" is supposed to be
utilized for ??
Is it used to supervise daemons that stubbornly fork into the background.
Could anyone please explain with an example, i would be really helpful.
I have to the best of my abilities RTFM'ed and searched the internet.

Thank you,
Harish

Peter Hickman | 25 Apr 12:20
Gravatar

Getting a process to run as root

I have an application that scans log files that is written in Ruby. It
is installed as the user log_watcher but needs to be run as root so
that it can have the rights to read the various log files that it
needs. Essentially the service/log_watcher/run file comes down to
"sudo ruby log_watcher.rb", the log_watcher user has passwordless sudo
rights.

We have runit / supervise installed but when we try and start the
application it complains about supervise/ok or supervise/lock being
unavailable which means that the process is not being restarted after
a reboot.

How do I get to run the process as root from the log_watcher user.
I've tried various things I've seen in the wiki and got back from
googling but nothing seems to work. Or perhaps there is another way
around this?

Wayne Marshall | 11 Jan 13:52

[announce] perp-2.05: persistent process supervision

Announcing the latest release of perp, a persistent process
supervisor:

 http://b0llix.net/perp/distfiles/perp-2.05.tar.gz

What's New:

 * a couple of bugfixes for bigfuxes!

 * enhanced runuid(8) utility!

 * bigger release number!

About:

perp is a service supervisor similar in purpose to the venerable
daemontools package, providing a modern update with many
advantages:

 * easy configuration: in place service activation and no
   symlinks!

 * everthing administered in /etc/perp

 * fully FHS compatible

 * scanner/supervisor/controller runs as a single process

 * all context switching for multiple supervisor processes is
   eliminated
(Continue reading)

Mike Buland | 20 Oct 18:26
Picon

Per-user service managers

Hello,

I wrote this little program that manages per-user runsv instances.
For each user in the "svusers" group it starts a service manager in
their ~/.sv directory.  The service manager runs as that user, so as
long as they can run the sv program, they can manage their own
services.

Per-user service managers run independently of user logins.

I've released this under the BSD license, and it's available on github.

https://github.com/eichlan/usersv

I hope you find this program useful, I know I have.

--Mike Buland

Laurent Bercot | 9 Aug 10:36
Favicon

announce: s6-0.14

 s6-0.14 is out.

 This release fixes a bug that caused a SIGPIPE handler to not be
properly reset after a call to ftrigw_notify().
(The bug was introduced by the sig_restore() semantics change in
skalibs-1.0.3, which was a good thing, but ftrigw_notify() relied on the
old semantics.)
 Sorry about that.

 http://www.skarnet.org/software/s6/

 Enjoy.
 Bug-reports always welcome.

--

-- 
 Laurent

Laurent Bercot | 27 Jul 17:41
Favicon

announce: s6-0.13

 s6-0.13 is out.

 No changes from s6-0.12.
 It's just that s6-0.12 does not compile with skalibs-1.1.x due to some
interface change, and I had not noticed.
 s6-0.13 compiles with skalibs-1.1.0 and later.
 My apologies for the inconvenience.

 http://www.skarnet.org/software/s6/

 Enjoy.
 Bug-reports welcome.

--

-- 
 Laurent

Laurent Bercot | 6 Jul 02:19
Favicon

announce: s6-0.12

 s6-0.12 is out.

 This release fixes another building bug on OpenBSD, and other systems
that define stdio's "stderr" as a macro.

 http://www.skarnet.org/software/s6/

 Enjoy.
 Even more bug-reports always welcome.

--

-- 
 Laurent

Laurent Bercot | 2 Jul 03:04
Favicon

announce: s6-0.11

 s6-0.11 is out.

 This release fixes a building bug on OpenBSD (and other lagging OSes
that are still lacking EPROTO).
 No other changes, no need to upgrade if s6 is building fine for you.

 Thanks Frans Haarman for the report.

 http://www.skarnet.org/software/s6/

 Enjoy.
 More bug-reports welcome.

--

-- 
 Laurent

Lorenzo Beretta | 30 Jun 21:48
Picon
Favicon

skalibs build failure

Undeclared variable in selfpipe_trap.c and selfpipe_untrap.c:

script -c ./package/install ; cat typescript
==>
Script started on Thu 30 Jun 2011 09:41:08 PM CEST
Linking ./src into ./compile...

Importing ./conf-compile files into the build tree...
(Remove the compile/ subdirectory if conf-compile/ has been modified
since the last build.)

Linking include files...

Making subsystem systype...
make: Nothing to be done for `it'.
Subsystem systype done.

Making subsystem sys...
make: Nothing to be done for `it'.
Subsystem sys done.

Making subsystem sysdeps...
make: Nothing to be done for `it'.
Subsystem sysdeps done.

Making subsystem headers...
make: Nothing to be done for `it'.
Subsystem headers done.

Making subsystem libstddjb...
(Continue reading)

Laurent Bercot | 29 Jun 20:15
Favicon

announce: s6-0.10

 (announced on both the skaware <at> list.skarnet.org and
supervision <at> list.skarnet.org mailing-lists. Mail-Followup-To set
to skaware <at> list.skarnet.org.)

 s6-0.10 is out.

 s6 is a supervision suite, like the well-known daemontools, runit and
perp. It builds upon the accumulated knowledge we have, and tries to
bring the best of all worlds. :)

 s6 is designed to make its directory scanner, s6-svscan, run as
process 1, although it's not mandatory for it to run. The s6 documentation
provides extensive instructions on how to proceed.

 s6 also comes with a C implementation of instant notification named
libftrig, and command-line notifiers and listeners. This is the
long-awaited replacement of pipe-tools.   

 No more polling. Ever ! :)

 http://www.skarnet.org/software/s6/

 Enjoy.
 Bug-reports welcome.

--
 Laurent

Lloyd Zusman | 7 Jun 11:40

[skalibs] Why no negative numbers in the *_fmt routines?

I want to use skalibs to support some software that I'm writing,
instead of the standard unix libraries. This is generally working
well and resulting in smaller, more efficient binaries, but I
have come across one issue that is giving me some difficulties:
the integer-based *_fmt routines do not format negative numbers.

It seems that this is due to the fact that this group of *_fmt
routines are all built on top of uint64_fmt_base(), which only
knows about unsigned positive values. This makes sense for
routines like uint_fmt() and ulong_fmt(), but it is causes problems
when passing perfectly valid integers and longs to int_fmt() and
long_fmt(), when these valid values happen to be less than zero.

Of course, I know how to work around this, but it seems like the
most efficient solution to this problem would be for skalibs to
handle negative values at the lowest level, perhaps through a new
int64_fmt_base() routine that would underlie int_fmt(), long_fmt(),
etc.

Is there any reason for why such a routine should not be written,
so that fmtscan.h could use it to build the macros for all the
signed-value routines such as int_fmt() and long_fmt()?

If no one has any objections, I'd be happy to write a patch to
skalibs which provides this functionality.

Thoughts?

Thanks.

(Continue reading)


Gmane