summaryrefslogtreecommitdiff
path: root/system/utmps/utmps.initd
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2023-02-17 16:17:34 +0000
committerLaurent Bercot <ska-adelie@skarnet.org>2023-02-17 16:17:34 +0000
commit18d4af88389a8314eed7388b52ff97f1e7c4881b (patch)
tree8243aa76430c6f749e6f7d9e940a1db78c024968 /system/utmps/utmps.initd
parentb344d54026b7224bbb2432bde88fca74c7d78d34 (diff)
downloadpackages-18d4af88389a8314eed7388b52ff97f1e7c4881b.tar.gz
packages-18d4af88389a8314eed7388b52ff97f1e7c4881b.tar.bz2
packages-18d4af88389a8314eed7388b52ff97f1e7c4881b.tar.xz
packages-18d4af88389a8314eed7388b52ff97f1e7c4881b.zip
system/utmps: move utmpd to stage 2
Diffstat (limited to 'system/utmps/utmps.initd')
-rw-r--r--system/utmps/utmps.initd10
1 files changed, 6 insertions, 4 deletions
diff --git a/system/utmps/utmps.initd b/system/utmps/utmps.initd
index 6091bbb10..1131ca199 100644
--- a/system/utmps/utmps.initd
+++ b/system/utmps/utmps.initd
@@ -1,7 +1,7 @@
#!/sbin/openrc-run
# Copyright 2022-2023 Adélie Linux
-description="boot script for the utmps wtmp and btmp services"
+description="boot script for the utmps utmp, wtmp and btmp services"
depend()
{
@@ -12,16 +12,18 @@ depend()
stop()
{
- ebegin "Stopping the utmps wtmp and btmp services"
+ ebegin "Stopping the utmps services"
s6-svc -D /run/service/btmpd
s6-svc -D /run/service/wtmpd
+ s6-svc -D /run/service/utmpd
eend $?
}
start()
{
- ebegin "Starting the utmps wtmp and btmp services"
- s6-svlisten -U " /run/service/wtmpd" " /run/service/btmpd" "" \
+ ebegin "Starting the utmps services"
+ s6-svlisten -U " /run/service/utmpd" " /run/service/wtmpd" " /run/service/btmpd" "" \
+ foreground " s6-svc" " -U" " /run/service/utmpd" "" \
foreground " s6-svc" " -U" " /run/service/wtmpd" "" \
s6-svc -U /run/service/btmpd
eend $?