]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-basic.service
Treat kernel version condition as a list of quoted checks
[thirdparty/systemd.git] / test / test-execute / exec-basic.service
1 [Unit]
2 Description=Test for basic execution
3 ConditionKernelVersion=">=3.0"
4 ConditionKernelVersion=">=2.0" "<=60" "!=1.4"
5 ConditionKernelVersion=" >= 2.0" " <= 60 " "!= 1.4"
6 ConditionKernelVersion=" >= 2.0" " * " "*.*"
7
8 [Service]
9 ExecStart=touch /tmp/a ; /bin/sh -c 'touch /tmp/b' ; touch /tmp/c
10 ExecStart=test -f /tmp/a
11 ExecStart=!test -f /tmp/b
12 ExecStart=!!test -f /tmp/c
13 ExecStart=+test -f /tmp/c
14 ExecStartPost=rm /tmp/a /tmp/b /tmp/c
15
16 PrivateTmp=true
17 Type=oneshot