summaryrefslogtreecommitdiff
path: root/pcr/mirror-sync/mirror-sync.service
blob: 958a2848d9635d32c70fa504ee15f5e2b851f470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=mirror sync
ConditionPathIsReadWrite=/srv/repo/
ConditionPathIsReadWrite=/srv/repo-staging/
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/lib/mirror-sync/mirror-sync.sh
Nice=19
StandardOutput=journal
StandardError=journal
PrivateTmp=yes
PrivateDevices=yes
CapabilityBoundingSet=
NoNewPrivileges=yes