]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 23 May 2023 09:57:41 +0000 (11:57 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 23 May 2023 09:58:02 +0000 (11:58 +0200)
- these are system-specific service files

contrib/systemd-services/fedi_block_api.service [new file with mode: 0644]
contrib/systemd-services/fetch_blocks.service [new file with mode: 0644]
services/fedi_block_api.service [deleted file]
services/fetch_blocks.service [deleted file]

diff --git a/contrib/systemd-services/fedi_block_api.service b/contrib/systemd-services/fedi_block_api.service
new file mode 100644 (file)
index 0000000..50f29d5
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Fedi block API
+
+[Service]
+Type=simple
+Restart=on-failure
+RestartSec=10
+User=fba
+WorkingDirectory=/opt/fedi-block-api
+ExecStart=python3 api.py
+
+[Install]
+WantedBy=multi-user.target
diff --git a/contrib/systemd-services/fetch_blocks.service b/contrib/systemd-services/fetch_blocks.service
new file mode 100644 (file)
index 0000000..d5230f9
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Fetch blocks
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=604800
+User=fba
+WorkingDirectory=/opt/fedi-block-api
+ExecStart=python3 fetch_blocks.py
+
+[Install]
+WantedBy=multi-user.target
diff --git a/services/fedi_block_api.service b/services/fedi_block_api.service
deleted file mode 100644 (file)
index 50f29d5..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Fedi block API
-
-[Service]
-Type=simple
-Restart=on-failure
-RestartSec=10
-User=fba
-WorkingDirectory=/opt/fedi-block-api
-ExecStart=python3 api.py
-
-[Install]
-WantedBy=multi-user.target
diff --git a/services/fetch_blocks.service b/services/fetch_blocks.service
deleted file mode 100644 (file)
index d5230f9..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Fetch blocks
-
-[Service]
-Type=simple
-Restart=always
-RestartSec=604800
-User=fba
-WorkingDirectory=/opt/fedi-block-api
-ExecStart=python3 fetch_blocks.py
-
-[Install]
-WantedBy=multi-user.target