aboutsummaryrefslogtreecommitdiff
path: root/utils/systemd
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-11-17 13:55:49 +0800
committerKunoiSayami <[email protected]>2023-11-17 13:55:49 +0800
commit3eb6ed90365270c18e2a746ae0e849421c1805d1 (patch)
treec9f3947af0849fea8c653d9d8c0eacfd13ff2775 /utils/systemd
parentb070b9d828933eeb6466b7e575bd882b303fda5d (diff)
refactor: Remove utils from repository
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'utils/systemd')
-rw-r--r--utils/systemd/update-repo-copy.service8
-rw-r--r--utils/systemd/update-repo-notify.service5
-rw-r--r--utils/systemd/update-repo-notify.socket16
-rw-r--r--utils/systemd/[email protected]7
-rwxr-xr-xutils/systemd/wait-services.sh6
5 files changed, 0 insertions, 42 deletions
diff --git a/utils/systemd/update-repo-copy.service b/utils/systemd/update-repo-copy.service
deleted file mode 100644
index af79ee5..0000000
--- a/utils/systemd/update-repo-copy.service
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=Update repo copy service
-
-[Service]
-WorkingDirectory=/var/lib/update/packages/
-ExecStartPre=/var/lib/update/wait-services.sh
-ExecStart=/usr/bin/rsync -r --links -vct --update --delete . /var/www/packages \ No newline at end of file
diff --git a/utils/systemd/update-repo-notify.service b/utils/systemd/update-repo-notify.service
deleted file mode 100644
index d7e3c9a..0000000
--- a/utils/systemd/update-repo-notify.service
+++ /dev/null
@@ -1,5 +0,0 @@
-[Unit]
-Description=Update repo notify service
-
-[Service]
-ExecStart=/var/lib/update/trigger.py \ No newline at end of file
diff --git a/utils/systemd/update-repo-notify.socket b/utils/systemd/update-repo-notify.socket
deleted file mode 100644
index f14743c..0000000
--- a/utils/systemd/update-repo-notify.socket
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Update repo notify socket
-
-[Socket]
-# If /var/run is not implemented as a symlink to /run, you may need to
-# specify ListenStream=/var/run/docker.sock instead.
-ListenStream=/run/update-repo-notify.sock
-SocketMode=0660
-SocketUser=update-database
-SocketGroup=http
-#Accept=yes
-MaxConnections=1
-FlushPending=yes
-
-[Install]
-WantedBy=sockets.target \ No newline at end of file
diff --git a/utils/systemd/[email protected] b/utils/systemd/[email protected]
deleted file mode 100644
index 6fa98da..0000000
--- a/utils/systemd/[email protected]
+++ /dev/null
@@ -1,7 +0,0 @@
-[Unit]
-Description=Update repo %i service
-
-[Service]
-User=update-database
-ExecStart=/var/lib/update/update-db.py /var/lib/update %i AAAABBBBCCCCDDDDDDDDCCCCBBBBAAAA
-#ExecStart=rsync \ No newline at end of file
diff --git a/utils/systemd/wait-services.sh b/utils/systemd/wait-services.sh
deleted file mode 100755
index be20239..0000000
--- a/utils/systemd/wait-services.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-echo "Checking is service running"
-while /usr/bin/systemctl status --no-page | grep update-repo@ | grep -v grep;
-do
- sleep 1
-done \ No newline at end of file