[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#993265: RFS: runit/2.1.2-42 -- system-wide service supervision



On Mon, 30 Aug 2021 05:03:33 +0200
Adam Borowski <kilobyte@angband.pl> wrote:

> On Sun, Aug 29, 2021 at 07:02:49PM +0200, Lorenzo Puliti wrote:
> >  * Package name    : runit
> >    Version         : 2.1.2-42
> 
> >  runit (2.1.2-42) unstable; urgency=medium
> >  .
> >    * Release to unstable
> >    * getty-run: add hvc0 service, disabled by default:
> >        this is usually needed by Xen hypervisor
> >    * Add a default-syslog virtual service:
> >        to increase portability, services that log to syslog
> >        can depend on this rather than on a specific
> >        syslog daemon
> >    * shutdown.c:
> >        - try to fix FTBFS on Hurd (Closes: #992629)
> >        - distinguish between halt and shutdown flags:
> >          The -r flag ( as reboot) now only works with shutdown;
> >          Add a -f flag to shutdown (skip fsck next boot);
> >          Add -F flag to shutdown (force fsck next boot);
> >          The -f (as force a shutdown) and -w/--wtmp-only flags now
> >           only work with halt.
> >          (Closes: #992631)
> >        - Add a -n flag to halt, to skip sync() before
> > reboot/poweroff; also, always check for runit.nosync flag file
> > before invoking sync()  (Closes: #992641)
> >        - make halt '-f' flag a noop when runit is init. This way
> > runit can use its own code to reboot/poweroff the system; users
> >          can still use the long '--force' option to force a shutdown
> >          without signaling the init (Closes: #899246)
> >    * Update shutdown(8) manpage
> >    * Bump Standards Version to 4.6.0, no change required
> >    * Update lintian overrides for 'alternative init but not init.d
> > script'
> 
> Uploaded.

Thanks for the upload Adam :)

> 
> That "default-syslog" that's consists of a 10min sleep looks
> strange...



What I want to be able to do is

'sv start default-syslog  &&  sv check default-syslog  ||  exit 1'

in each service that sends its logs to a syslog deamon.
In order to use the 'sv check' command I need to define a service, a
run file. 
So the check file does the job ( runs through a list of supported
syslogs and return 0 if one is up) and the run file acts like
a timer (wakes up every 10min) that does nothing..
I'm very open to suggestions to improve this!

> 
> 
> Meow!

Lorenzo


Reply to: