diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2022-06-16 21:28:12 +0000 |
---|---|---|
committer | Laurent Bercot <ska-adelie@skarnet.org> | 2022-06-16 21:28:12 +0000 |
commit | 65355eb7145f09bbea6fb0ad93ae862a2f0385cd (patch) | |
tree | b4c0eb13de6296bf2f6d2a6830e1f04153b98434 /system/utmps/utmps.initd | |
parent | a8f9604ed485c973a6ba5fef3918a09d03ffc6c2 (diff) | |
download | packages-65355eb7145f09bbea6fb0ad93ae862a2f0385cd.tar.gz packages-65355eb7145f09bbea6fb0ad93ae862a2f0385cd.tar.bz2 packages-65355eb7145f09bbea6fb0ad93ae862a2f0385cd.tar.xz packages-65355eb7145f09bbea6fb0ad93ae862a2f0385cd.zip |
Skaware.20220616
Diffstat (limited to 'system/utmps/utmps.initd')
-rw-r--r-- | system/utmps/utmps.initd | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/system/utmps/utmps.initd b/system/utmps/utmps.initd new file mode 100644 index 000000000..c6f884a52 --- /dev/null +++ b/system/utmps/utmps.initd @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 2022 Adélie Linux + +description="boot script for the utmps wtmp and btmp services" + +depend() +{ + need localmount + after bootmisc + before networking +} + +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 + 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 + eend $? +} |