summaryrefslogtreecommitdiff
path: root/extra/utmps
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /extra/utmps
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'extra/utmps')
-rw-r--r--extra/utmps/btmpd.initd24
-rw-r--r--extra/utmps/btmpd.logrotate6
-rw-r--r--extra/utmps/utmp-init.initd21
-rw-r--r--extra/utmps/utmp-prepare.initd25
-rw-r--r--extra/utmps/utmpd.initd23
-rw-r--r--extra/utmps/wtmpd.initd24
-rw-r--r--extra/utmps/wtmpd.logrotate6
7 files changed, 0 insertions, 129 deletions
diff --git a/extra/utmps/btmpd.initd b/extra/utmps/btmpd.initd
deleted file mode 100644
index b9acc72..0000000
--- a/extra/utmps/btmpd.initd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2021 Laurent Bercot for Alpine Linux
-# Distributed under the terms of the ISC License.
-#
-name=btmpd
-description="utmps daemon for the btmp service"
-
-command=/bin/s6-ipcserver
-command_args="/run/utmps/.btmpd-socket utmps-wtmpd btmp"
-command_user=utmp
-command_background=yes
-directory=/var/log/btmpd
-pidfile=/run/utmps/btmpd.pid
-
-depend() {
- need localmount utmp-prepare
- after bootmisc
- before networking
-}
-
-start_pre() {
- checkpath -d -o utmp:utmp -m 0755 /run/utmps
- checkpath -d -o utmp:utmp -m 2755 /var/log/btmpd
-}
diff --git a/extra/utmps/btmpd.logrotate b/extra/utmps/btmpd.logrotate
deleted file mode 100644
index b681d90..0000000
--- a/extra/utmps/btmpd.logrotate
+++ /dev/null
@@ -1,6 +0,0 @@
-/var/log/btmpd/btmp {
- missingok
- monthly
- create 0644 utmp utmp
- rotate 3
-}
diff --git a/extra/utmps/utmp-init.initd b/extra/utmps/utmp-init.initd
deleted file mode 100644
index acb4dbe..0000000
--- a/extra/utmps/utmp-init.initd
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2022 Laurent Bercot for Alpine Linux
-# Distributed under the terms of the ISC License.
-#
-description="clearing and initialization of the utmp database"
-
-depend() {
- need utmp-prepare utmpd wtmpd
- before networking
- after clock
-}
-
-start() {
- # Create an empty utmp file
- checkpath -F -f -m 0644 -o utmp:utmp /run/utmps/utmp
-
- # Write the initial records as sysvinit/busybox init would do.
- # 20018 = 256 * 'N' + '2'. Don't ask.
- utmps-write -t 2000 -uw -l reboot -p 0 -h "$(uname -r)" -- '~~' BOOT_TIME '~'
- utmps-write -t 2000 -uw -l runlevel -p 20018 -h "$(uname -r)" -- '~~' RUN_LVL '~'
-}
diff --git a/extra/utmps/utmp-prepare.initd b/extra/utmps/utmp-prepare.initd
deleted file mode 100644
index 9f61249..0000000
--- a/extra/utmps/utmp-prepare.initd
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2022 Laurent Bercot for Alpine Linux
-# Distributed under the terms of the ISC License.
-#
-description="preparation of the utmp databases"
-
-depend() {
- before networking
- after clock
-}
-
-start() {
- if ! test -L /var/log/utmp || test "$(readlink /var/log/utmp)" != /run/utmps/utmp ; then
- rm -f /var/log/utmp
- ln -s /run/utmps/utmp /var/log/utmp
- fi
- if ! test -L /var/log/wtmp || test "$(readlink /var/log/wtmp)" != wtmpd/wtmp ; then
- rm -f /var/log/wtmp
- ln -s wtmpd/wtmp /var/log/wtmp
- fi
- if ! test -L /var/log/btmp || test "$(readlink /var/log/btmp)" != btmpd/btmp ; then
- rm -f /var/log/btmp
- ln -s btmpd/btmp /var/log/btmp
- fi
-}
diff --git a/extra/utmps/utmpd.initd b/extra/utmps/utmpd.initd
deleted file mode 100644
index d04c6b9..0000000
--- a/extra/utmps/utmpd.initd
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2021 Laurent Bercot for Alpine Linux
-# Distributed under the terms of the ISC License.
-#
-name="utmpd"
-description="utmps daemon for the utmp service"
-
-command=/bin/s6-ipcserver
-command_args="/run/utmps/.utmpd-socket utmps-utmpd"
-command_user=utmp
-command_background=yes
-directory=/run/utmps
-pidfile=/run/utmps/utmpd.pid
-
-depend() {
- need utmp-prepare
- after bootmisc
- before networking
-}
-
-start_pre() {
- checkpath -d -o utmp:utmp -m 0755 /run/utmps
-}
diff --git a/extra/utmps/wtmpd.initd b/extra/utmps/wtmpd.initd
deleted file mode 100644
index 8d3f624..0000000
--- a/extra/utmps/wtmpd.initd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2020-2021 Laurent Bercot for Alpine Linux
-# Distributed under the terms of the ISC License.
-#
-name=wtmpd
-description="utmps daemon for the wtmp service"
-
-command=/bin/s6-ipcserver
-command_args="/run/utmps/.wtmpd-socket utmps-wtmpd wtmp"
-command_user=utmp
-command_background=yes
-directory=/var/log/wtmpd
-pidfile=/run/utmps/wtmpd.pid
-
-depend() {
- need localmount utmp-prepare
- after bootmisc
- before networking
-}
-
-start_pre() {
- checkpath -d -o utmp:utmp -m 0755 /run/utmps
- checkpath -d -o utmp:utmp -m 2755 /var/log/wtmpd
-}
diff --git a/extra/utmps/wtmpd.logrotate b/extra/utmps/wtmpd.logrotate
deleted file mode 100644
index bb23536..0000000
--- a/extra/utmps/wtmpd.logrotate
+++ /dev/null
@@ -1,6 +0,0 @@
-/var/log/wtmpd/wtmp {
- missingok
- monthly
- create 0644 utmp utmp
- rotate 3
-}