From mboxrd@z Thu Jan 1 00:00:00 1970 X-Received: by 10.182.126.168 with SMTP id mz8mr2832725obb.9.1422449716855; Wed, 28 Jan 2015 04:55:16 -0800 (PST) X-BeenThere: voidlinux@googlegroups.com Received: by 10.140.39.135 with SMTP id v7ls640851qgv.34.gmail; Wed, 28 Jan 2015 04:55:16 -0800 (PST) X-Received: by 10.140.98.198 with SMTP id o64mr85341qge.41.1422449716698; Wed, 28 Jan 2015 04:55:16 -0800 (PST) Date: Wed, 28 Jan 2015 04:55:16 -0800 (PST) From: =?UTF-8?Q?Stefan_M=C3=BChlinghaus?= To: voidlinux@googlegroups.com Message-Id: <0caf8c16-98d6-470a-a018-2882c8c2e6f5@googlegroups.com> In-Reply-To: <2e7696dc-6d63-4eea-b015-45bb77426f15@googlegroups.com> References: <2e7696dc-6d63-4eea-b015-45bb77426f15@googlegroups.com> Subject: Re: Default runit services MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5343_1091551791.1422449716306" ------=_Part_5343_1091551791.1422449716306 Content-Type: multipart/alternative; boundary="----=_Part_5344_1905638663.1422449716306" ------=_Part_5344_1905638663.1422449716306 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Maybe something like this can prevent the worst case scenario: In INSTALL pre: [ -e /var/service/agetty-tty6 ] && sv stop /var/service/agetty-tty6 ln -sf /etc/sv/agetty-tty6 /var/service/rescue-tty6 In INSTALL post: rm -f /var/service/rescue-tty6 [ -e /var/service/agetty-tty6 ] && sv up /var/service/agetty-tty6 That way, even if all standard TTYs are removed during install, there is at least the rescue TTY. ------=_Part_5344_1905638663.1422449716306 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Maybe something like this can prevent the worst case scena= rio:

In INSTALL pre:

<= div class=3D"subprettyprint">[ -e /var/service/agetty-tty6 ] && sv stop /var/service/agetty-tty6
ln
-sf /etc/sv/agetty-tty6 /var/service/rescue-tty6

In INSTALL post:

rm -f /var/service/rescue-tty6[<= span style=3D"color: #000;" class=3D"styled-by-prettify"> -e /var/service/aget= ty-= tty6 ] && sv up /var/service/aget= ty-= tty6
=

That way, even if all standard TTYs are re= moved during install, there is at least the rescue TTY.
------=_Part_5344_1905638663.1422449716306-- ------=_Part_5343_1091551791.1422449716306--