From d759f60c944b70f10a90912e01c2f038c10e525d Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Tue, 25 Oct 2022 23:42:28 +0800 Subject: feat(script): Implement systemd functions Signed-off-by: KunoiSayami --- utils/ng/systemd/update-repo-notify.service | 4 +--- utils/ng/systemd/update-repo@.service | 7 +++++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 utils/ng/systemd/update-repo@.service (limited to 'utils/ng/systemd') diff --git a/utils/ng/systemd/update-repo-notify.service b/utils/ng/systemd/update-repo-notify.service index e609a8a..d7e3c9a 100644 --- a/utils/ng/systemd/update-repo-notify.service +++ b/utils/ng/systemd/update-repo-notify.service @@ -2,6 +2,4 @@ Description=Update repo notify service [Service] -User=update-database -DynamicUser=yes -ExecStart=/var/lib/update/update-db.py /run/update-repo-notify.sock \ No newline at end of file +ExecStart=/var/lib/update/trigger.py \ No newline at end of file diff --git a/utils/ng/systemd/update-repo@.service b/utils/ng/systemd/update-repo@.service new file mode 100644 index 0000000..6fa98da --- /dev/null +++ b/utils/ng/systemd/update-repo@.service @@ -0,0 +1,7 @@ +[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 -- cgit v1.3.1