]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/units/testsuite-07.sh
scope: on unified, make sure to unwatch all PIDs once they've been moved to the cgrou...
[thirdparty/systemd.git] / test / units / testsuite-07.sh
1 #!/usr/bin/env 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