summaryrefslogtreecommitdiff
path: root/system/utmps/utmps.initd
diff options
context:
space:
mode:
Diffstat (limited to 'system/utmps/utmps.initd')
-rw-r--r--system/utmps/utmps.initd12
1 files changed, 5 insertions, 7 deletions
diff --git a/system/utmps/utmps.initd b/system/utmps/utmps.initd
index c6f884a52..6091bbb10 100644
--- a/system/utmps/utmps.initd
+++ b/system/utmps/utmps.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 2022 Adélie Linux
+# Copyright 2022-2023 Adélie Linux
description="boot script for the utmps wtmp and btmp services"
@@ -13,18 +13,16 @@ depend()
stop()
{
ebegin "Stopping the utmps wtmp and btmp services"
- touch /run/service/wtmpd/down /run/service/btmpd/down
- s6-svc -d /run/service/btmpd
- s6-svc -d /run/service/wtmpd
+ s6-svc -D /run/service/btmpd
+ s6-svc -D /run/service/wtmpd
eend $?
}
start()
{
ebegin "Starting the utmps wtmp and btmp services"
- rm -f /run/service/wtmpd/down /run/service/btmpd/down
s6-svlisten -U " /run/service/wtmpd" " /run/service/btmpd" "" \
- foreground " s6-svc" " -u" " /run/service/wtmpd" "" \
- s6-svc -u /run/service/btmpd
+ foreground " s6-svc" " -U" " /run/service/wtmpd" "" \
+ s6-svc -U /run/service/btmpd
eend $?
}