]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/TEST-07-ISSUE-1981/test-segfault.sh
scripts: use 4 space indentation
[thirdparty/systemd.git] / test / TEST-07-ISSUE-1981 / test-segfault.sh
1 #!/bin/bash
2 set -x
3 set -e
4
5 >/failed
6
7 cat <<'EOL' >/lib/systemd/system/my.service
8 [Service]
9 Type=oneshot
10 ExecStart=/bin/echo Timer runs me
11 EOL
12
13 cat <<'EOL' >/lib/systemd/system/my.timer
14 [Timer]
15 OnBootSec=10s
16 OnUnitInactiveSec=1h
17 EOL
18
19 systemctl unmask my.timer
20
21 systemctl start my.timer
22
23 mkdir -p /etc/systemd/system/my.timer.d/
24 cat <<'EOL' >/etc/systemd/system/my.timer.d/override.conf
25 [Timer]
26 OnBootSec=10s
27 OnUnitInactiveSec=1h
28 EOL
29
30 systemctl daemon-reload
31
32 systemctl mask my.timer
33
34 touch /testok
35 rm /failed