Re: s6-svscanboot, how to exit?

From: Brett Neumeier <bneumeier_at_gmail.com>
Date: Fri, 14 Jul 2017 15:00:10 -0500

On Fri, Jul 14, 2017 at 10:58 AM, Laurent Bercot <
ska-supervision_at_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 service.
>

​I do! -- because I'm using s6 for process supervision on centos 7, which
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]
Type=simple
Environment=PATH=/opt/s6/bin:/sbin:/bin:/usr/sbin:/usr/bin
ExecStart=/var/s6scandir/.s6-svscanboot
Restart=always

[Install]
WantedBy=multi-user.target​
----cut here----


-- 
Brett Neumeier (bneumeier_at_gmail.com)
Received on Fri Jul 14 2017 - 20:00:10 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC