tests: replace the few remaining Type=simple with Type=exec

Except for the places where we explicitly want to test Type=simple,
we should use Type=exec.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-09-14 09:02:36 +02:00
parent 67b2edb21f
commit 28c48f4d78
3 changed files with 3 additions and 3 deletions

View 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'

View File

@ -4,6 +4,6 @@ StartLimitIntervalSec=1m
StartLimitBurst=3
[Service]
Type=simple
Type=exec
ExecStart=false
Restart=always

View 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