From a38b5f887eb16a2f734cdae63b9dede4941f68e6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 7 Dec 2022 23:59:37 +0100 Subject: run a script in systemd unit --- systemd/archlogo | 4 ++++ systemd/archlogo.service | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 systemd/archlogo (limited to 'systemd') diff --git a/systemd/archlogo b/systemd/archlogo new file mode 100644 index 0000000..1c05ab7 --- /dev/null +++ b/systemd/archlogo @@ -0,0 +1,4 @@ +#!/bin/sh + +source /etc/archlogo.conf +cat /usr/share/archlogo/"${ARCHLOGO}" diff --git a/systemd/archlogo.service b/systemd/archlogo.service index 60ace62..dc46573 100644 --- a/systemd/archlogo.service +++ b/systemd/archlogo.service @@ -7,6 +7,4 @@ Before=sysinit.target systemd-ask-password-console.service Type=oneshot RemainAfterExit=yes StandardOutput=tty -EnvironmentFile=/etc/archlogo.conf -WorkingDirectory=/usr/share/archlogo -ExecStart=/usr/bin/cat "${ARCHLOGO}" +ExecStart=/usr/lib/systemd/scripts/archlogo -- cgit v1.2.3-70-g09d2