Ubuntu Pastebin

Paste from sarnold at Tue, 17 May 2016 05:37:03 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
root@wopr:/etc/systemd/system# tail -n100 mirror.timer mirror.target mirror-rsync.service mirror-snapshot.service
==> mirror.timer <==
[Unit]
Description=Mirror ubuntu archives every four hours

[Timer]
OnBootSec=1h
OnUnitInactiveSec=4h
Unit=mirror.target

[Install]
WantedBy=timers.target

==> mirror.target <==
[Unit]
Description=Ubuntu Mirror Synchronization

==> mirror-rsync.service <==
[Unit]
Description=Mirror Ubuntu Archives -- rsync
AssertPathExists=/srv/mirror/ubuntu
Before=mirror-snapshot.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/ubuntu-mirror-rsync
User=mirror
Nice=1

[Install]
WantedBy=mirror.target

==> mirror-snapshot.service <==
[Unit]
Description=Mirror Ubuntu Archives -- snapshot
AssertPathExists=/srv/mirror/ubuntu
After=mirror-rsync.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/ubuntu-mirror-snapshot
User=root

[Install]
WantedBy=mirror.target
root@wopr:/etc/systemd/system# systemctl list-timers | grep mirror.timer
n/a                          n/a      Sat 2016-05-14 03:06:33 PDT  2 days ago   mirror.timer                 mirror.target
Download as text