summaryrefslogtreecommitdiff
path: root/system/utmps/utmps.initd
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2023-01-15 12:35:39 +0000
committerLaurent Bercot <ska-adelie@skarnet.org>2023-01-15 12:35:39 +0000
commit34850fd823da1e55d445c6b8c824ec08c68d5f0c (patch)
tree32949d253430fc52a9dcda12be72e0b9083a1f77 /system/utmps/utmps.initd
parentd6b4114ddf67ed19d05798990dd4d2ce8a8d2d0c (diff)
downloadpackages-34850fd823da1e55d445c6b8c824ec08c68d5f0c.tar.gz
packages-34850fd823da1e55d445c6b8c824ec08c68d5f0c.tar.bz2
packages-34850fd823da1e55d445c6b8c824ec08c68d5f0c.tar.xz
packages-34850fd823da1e55d445c6b8c824ec08c68d5f0c.zip
system/utmps: upgrade to 0.1.2.1
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 $?
}