From b750101eb236130cf056c675997decbac904cc49 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:35:18 +0200 Subject: Adding upstream version 252.22. Signed-off-by: Daniel Baumann --- test/testsuite-03.units/always-activating.service | 8 ++++++++ test/testsuite-03.units/always-activating.socket | 5 +++++ test/testsuite-03.units/hello-after-sleep.target | 6 ++++++ test/testsuite-03.units/hello.service | 6 ++++++ test/testsuite-03.units/sleep.service | 7 +++++++ test/testsuite-03.units/unstoppable.service | 6 ++++++ 6 files changed, 38 insertions(+) create mode 100644 test/testsuite-03.units/always-activating.service create mode 100644 test/testsuite-03.units/always-activating.socket create mode 100644 test/testsuite-03.units/hello-after-sleep.target create mode 100644 test/testsuite-03.units/hello.service create mode 100644 test/testsuite-03.units/sleep.service create mode 100644 test/testsuite-03.units/unstoppable.service (limited to 'test/testsuite-03.units') diff --git a/test/testsuite-03.units/always-activating.service b/test/testsuite-03.units/always-activating.service new file mode 100644 index 0000000..93ddb85 --- /dev/null +++ b/test/testsuite-03.units/always-activating.service @@ -0,0 +1,8 @@ +[Unit] +Description=Service that never leaves state ACTIVATING +Requires=always-activating.socket +After=always-activating.socket + +[Service] +Type=notify +ExecStart=bash -c 'sleep infinity' diff --git a/test/testsuite-03.units/always-activating.socket b/test/testsuite-03.units/always-activating.socket new file mode 100644 index 0000000..c76fed2 --- /dev/null +++ b/test/testsuite-03.units/always-activating.socket @@ -0,0 +1,5 @@ +[Unit] +Description=Socket that activates always-activating.service + +[Socket] +ListenStream=/run/test-03-always-activating.sock diff --git a/test/testsuite-03.units/hello-after-sleep.target b/test/testsuite-03.units/hello-after-sleep.target new file mode 100644 index 0000000..b0ddb30 --- /dev/null +++ b/test/testsuite-03.units/hello-after-sleep.target @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Sleep for a minute, then say hello. +Wants=sleep.service hello.service +After=sleep.service +Before=hello.service diff --git a/test/testsuite-03.units/hello.service b/test/testsuite-03.units/hello.service new file mode 100644 index 0000000..0c3f2f8 --- /dev/null +++ b/test/testsuite-03.units/hello.service @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Hello World + +[Service] +ExecStart=/bin/echo "Hello World" diff --git a/test/testsuite-03.units/sleep.service b/test/testsuite-03.units/sleep.service new file mode 100644 index 0000000..32c2037 --- /dev/null +++ b/test/testsuite-03.units/sleep.service @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Unit] +Description=Sleep for 1 minute + +[Service] +Type=oneshot +ExecStart=/bin/sleep 60 diff --git a/test/testsuite-03.units/unstoppable.service b/test/testsuite-03.units/unstoppable.service new file mode 100644 index 0000000..6eb7c19 --- /dev/null +++ b/test/testsuite-03.units/unstoppable.service @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/echo "I'm unstoppable!" +ExecStop=/bin/systemctl start --no-block unstoppable.service -- cgit v1.2.3