From 3eb6ed90365270c18e2a746ae0e849421c1805d1 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Fri, 17 Nov 2023 13:55:49 +0800 Subject: refactor: Remove utils from repository Signed-off-by: KunoiSayami --- utils/systemd/update-repo-copy.service | 8 -------- utils/systemd/update-repo-notify.service | 5 ----- utils/systemd/update-repo-notify.socket | 16 ---------------- utils/systemd/update-repo@.service | 7 ------- utils/systemd/wait-services.sh | 6 ------ 5 files changed, 42 deletions(-) delete mode 100644 utils/systemd/update-repo-copy.service delete mode 100644 utils/systemd/update-repo-notify.service delete mode 100644 utils/systemd/update-repo-notify.socket delete mode 100644 utils/systemd/update-repo@.service delete mode 100755 utils/systemd/wait-services.sh (limited to 'utils/systemd') 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 -After=update-repo@.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/update-repo@.service b/utils/systemd/update-repo@.service deleted file mode 100644 index 6fa98da..0000000 --- a/utils/systemd/update-repo@.service +++ /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 -- cgit v1.3.1