* Default runit services
@ 2015-01-22 19:33 Stefan Mühlinghaus
2015-01-22 20:35 ` Juan RP
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Stefan Mühlinghaus @ 2015-01-22 19:33 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 564 bytes --]
Is it neccessary for all default runit services (e.g. 6 TTYs) to be active?
I usually never need more then 2 but when I remove TTY3-6 from /var/service
the next update of the runit package puts them back in. I would propose
that the links are only created via INSTALL file unless a corresponding
/etc/sv/agetty-ttyX/down file is present. That is, if the TTY-directories
in /etc/sv aren't completely overwritten at the next runit-void update,
which I think they are...
Anyway, would this be a valid feature? Would someone other than me use it?
:)
[-- Attachment #1.2: Type: text/html, Size: 591 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Default runit services
2015-01-22 19:33 Default runit services Stefan Mühlinghaus
@ 2015-01-22 20:35 ` Juan RP
2015-01-22 20:53 ` Logen Kain
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Juan RP @ 2015-01-22 20:35 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 84 bytes --]
True... and I agree, that's the correct way.
Will change this tomorrow, thanks.
[-- Attachment #1.2: Type: text/html, Size: 111 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Default runit services
2015-01-22 19:33 Default runit services Stefan Mühlinghaus
2015-01-22 20:35 ` Juan RP
@ 2015-01-22 20:53 ` Logen Kain
2015-01-27 8:56 ` Juan RP
2015-01-28 9:19 ` Stefan Mühlinghaus
2015-01-28 12:55 ` Stefan Mühlinghaus
3 siblings, 1 reply; 9+ messages in thread
From: Logen Kain @ 2015-01-22 20:53 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 220 bytes --]
Just wanted to say you're not the only one, I did this for power
consumption on my R61 Laptop a while back, I noticed the issue of the extra
tty comming back as well. Suppose I should have asked about it then ^_^.
[-- Attachment #1.2: Type: text/html, Size: 244 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Default runit services
2015-01-22 19:33 Default runit services Stefan Mühlinghaus
2015-01-22 20:35 ` Juan RP
2015-01-22 20:53 ` Logen Kain
@ 2015-01-28 9:19 ` Stefan Mühlinghaus
2015-01-28 9:24 ` Juan RP
2015-01-28 12:55 ` Stefan Mühlinghaus
3 siblings, 1 reply; 9+ messages in thread
From: Stefan Mühlinghaus @ 2015-01-28 9:19 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 1068 bytes --]
I updated yesterday on my home PC without a problem, but just now I updated
from 20150127_1 to 20150127_3 on another PC and had the problem, that the
default services were removed but not reinstalled. I was missing the whole
"single" runlevel and all TTYs from the "default" runlevel, effectively
pulling the system from underneath my feet and leaving it unable to boot.
I assume this happened because the default links in /etc/runit/runsvdir are
removed since they are no longer package content and the INSTALL file had
no chance to create them because now all TTYs were immediately killed by
their runsv-processes.
I do not think this will be a problem in any further updates, but right now
I guess others could run into this too. Maybe the INSTALL file could
install a helper-service pre-installation, that checks after a couple of
seconds if there is at least one TTY running and if not install them as the
post-install-process would do. After that it could remove itself. I can
submit a pull request when I'm back home later today.
[-- Attachment #1.2: Type: text/html, Size: 1107 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Default runit services
2015-01-22 19:33 Default runit services Stefan Mühlinghaus
` (2 preceding siblings ...)
2015-01-28 9:19 ` Stefan Mühlinghaus
@ 2015-01-28 12:55 ` Stefan Mühlinghaus
3 siblings, 0 replies; 9+ messages in thread
From: Stefan Mühlinghaus @ 2015-01-28 12:55 UTC (permalink / raw)
To: voidlinux
[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 5663 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2015-01-28 12:55 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 19:33 Default runit services Stefan Mühlinghaus
2015-01-22 20:35 ` Juan RP
2015-01-22 20:53 ` Logen Kain
2015-01-27 8:56 ` Juan RP
2015-01-27 19:26 ` Stefan Mühlinghaus
2015-01-27 19:34 ` Juan RP
2015-01-28 9:19 ` Stefan Mühlinghaus
2015-01-28 9:24 ` Juan RP
2015-01-28 12:55 ` Stefan Mühlinghaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).