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:
parent
67b2edb21f
commit
28c48f4d78
|
@ -2,5 +2,5 @@
|
||||||
Description=ForeverPrintHola service
|
Description=ForeverPrintHola service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=exec
|
||||||
ExecStart=sh -x -c 'while :; do printf "Hola\n" || touch /i-lose-my-logs; sleep 1; done'
|
ExecStart=sh -x -c 'while :; do printf "Hola\n" || touch /i-lose-my-logs; sleep 1; done'
|
||||||
|
|
|
@ -4,6 +4,6 @@ StartLimitIntervalSec=1m
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=exec
|
||||||
ExecStart=false
|
ExecStart=false
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
|
@ -13,7 +13,7 @@ StopWhenUnneeded=yes
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=rm -f /failed /testok
|
ExecStartPre=rm -f /failed /testok
|
||||||
Type=simple
|
Type=exec
|
||||||
TimeoutStartSec=infinity
|
TimeoutStartSec=infinity
|
||||||
ExecStartPre=/usr/lib/systemd/tests/testdata/units/%N.sh
|
ExecStartPre=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||||
ExecStart=true
|
ExecStart=true
|
||||||
|
|
Loading…
Reference in New Issue