mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
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
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Type=exec
|
||||
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
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Type=exec
|
||||
ExecStart=false
|
||||
Restart=always
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user