summaryrefslogblamecommitdiff
path: root/system/utmps/utmps.initd
blob: 6091bbb10e4082555f6df00c66008bbc2cca7df8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
                  
                                   












                                                              

                                    





                                                          
                                                                       

                                                                     

               
#!/sbin/openrc-run
# Copyright 2022-2023 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"
	s6-svc -D /run/service/btmpd
	s6-svc -D /run/service/wtmpd
	eend $?
}

start()
{
	ebegin "Starting the utmps wtmp and btmp services"
	s6-svlisten -U " /run/service/wtmpd" " /run/service/btmpd" "" \
		foreground " s6-svc" " -U" " /run/service/wtmpd" "" \
		s6-svc -U /run/service/btmpd
	eend $?
}