aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-03-30 14:05:27 +0300
committerCem Keylan <cem@ckyln.com>2020-03-30 14:05:27 +0300
commit6dbf04260e2a63e9b3f7241ca2e8a64113a28e3d (patch)
tree2456c818c0722894e88a5a4f24a3cc9000f502ae /extra
parenta936d2c266e21cabe0859318a9a2271fd1856975 (diff)
downloadrepository-6dbf04260e2a63e9b3f7241ca2e8a64113a28e3d.tar.gz
meta: install sysmgr services as well as runit services
Diffstat (limited to 'extra')
-rwxr-xr-xextra/acpid/build4
-rwxr-xr-xextra/openssh/build7
-rwxr-xr-xextra/scron/build4
3 files changed, 13 insertions, 2 deletions
diff --git a/extra/acpid/build b/extra/acpid/build
index d495e64d..2e9a3bd4 100755
--- a/extra/acpid/build
+++ b/extra/acpid/build
@@ -6,5 +6,9 @@ make
make DESTDIR="$1" install
mkdir -p "$1/etc/acpi/events"
+# Install runit service.
install -Dm755 run "$1/etc/sv/acpid/run"
ln -s /run/runit/supervise.acpid "$1/etc/sv/acpid/supervise"
+
+# Install sysmgr service.
+install -Dm755 run "$1/etc/sysmgr/acpid"
diff --git a/extra/openssh/build b/extra/openssh/build
index 8680ddb1..d50490c7 100755
--- a/extra/openssh/build
+++ b/extra/openssh/build
@@ -21,6 +21,9 @@ make DESTDIR="$1" install
install -m 755 contrib/ssh-copy-id "$1/usr/bin/ssh-copy-id"
install -m 644 contrib/ssh-copy-id.1 "$1/usr/share/man/man8/ssh-copy-id.1"
-# Install runit services.
-install -Dm 755 sshd.run "$1/etc/sv/sshd/run"
+# Install runit service.
+install -Dm755 sshd.run "$1/etc/sv/sshd/run"
ln -s /run/runit/supervise.sshd "$1/etc/sv/sshd/supervise"
+
+# Install sysmgr service.
+install -Dm755 sshd.run "$1/etc/sysmgr/sshd"
diff --git a/extra/scron/build b/extra/scron/build
index 6564e5d3..fd90a6f7 100755
--- a/extra/scron/build
+++ b/extra/scron/build
@@ -6,3 +6,7 @@ make PREFIX="$1/usr" MANPREFIX="$1/usr/share/man" install
# Install runit service
install -Dm755 scron.run "$1/etc/sv/scron/run"
+ln -sv /run/runit/supervise.scron "$1/etc/sv/scron/supervise"
+
+# Install sysmgr service
+install -Dm755 scron.run "$1/etc/sysmgr/scron"