aboutsummaryrefslogtreecommitdiff
path: root/repo/kunoisayami-repo-rsync/[email protected]
diff options
context:
space:
mode:
authorMagomeYae <[email protected]>2021-12-05 01:26:12 +0800
committerMagomeYae <[email protected]>2021-12-05 01:26:12 +0800
commit1176a910efea67f40732791e7d284691967b614b (patch)
tree666789cc9855ac7b81883f31cbafdc48dbc2763b /repo/kunoisayami-repo-rsync/[email protected]
parent2e843022829ddfdd7284bc4692294258655bf04f (diff)
feat(add-pkg): Add kunoisayami-repo-rsync
Signed-off-by: MagomeYae <[email protected]>
Diffstat (limited to 'repo/kunoisayami-repo-rsync/[email protected]')
-rw-r--r--repo/kunoisayami-repo-rsync/[email protected]12
1 files changed, 12 insertions, 0 deletions
diff --git a/repo/kunoisayami-repo-rsync/[email protected] b/repo/kunoisayami-repo-rsync/[email protected]
new file mode 100644
index 0000000..a299ce3
--- /dev/null
+++ b/repo/kunoisayami-repo-rsync/[email protected]
@@ -0,0 +1,12 @@
+[Unit]
+Description=Repository sync service
+After=network.target
+
+[Service]
+Type=simple
+Restart=on-failure
+RestartSec=10s
+ExecStart=/usr/bin/rsync -r --links --partial -vc --update --delete %i::repo/* .
+WorkingDirectory=/var/www/repo/
+KillSignal=SIGINT
+TimeoutSec=900 \ No newline at end of file