]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: replace the few remaining Type=simple with Type=exec
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 Sep 2020 07:02:36 +0000 (09:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Oct 2020 09:05:17 +0000 (11:05 +0200)
Except for the places where we explicitly want to test Type=simple,
we should use Type=exec.

test/testsuite-04.units/forever-print-hola.service
test/testsuite-11.units/fail-on-restart.service
test/units/testsuite-16.service

index a0dc095688685cb44f2452b9228b151d1389af59..278145285c1caa703e31947e06322ffa469ca70a 100644 (file)
@@ -2,5 +2,5 @@
 Description=ForeverPrintHola service
 
 [Service]
-Type=simple
+Type=exec
 ExecStart=sh -x -c 'while :; do printf "Hola\n" || touch /i-lose-my-logs; sleep 1; done'
index 9264f151f31b9d1849eddd318bbc5d1e3a4630f6..6832cb241c4eb283c30ea9bfe290783cc5bcb8df 100644 (file)
@@ -4,6 +4,6 @@ StartLimitIntervalSec=1m
 StartLimitBurst=3
 
 [Service]
-Type=simple
+Type=exec
 ExecStart=false
 Restart=always
index b44baad91a650134b8b5a825c8fdf900d55d8792..34e89ff7527af75af70cc45fa250582b534284bb 100644 (file)
@@ -13,7 +13,7 @@ StopWhenUnneeded=yes
 
 [Service]
 ExecStartPre=rm -f /failed /testok
-Type=simple
+Type=exec
 TimeoutStartSec=infinity
 ExecStartPre=/usr/lib/systemd/tests/testdata/units/%N.sh
 ExecStart=true