From: Roland Häder Date: Tue, 23 May 2023 09:57:41 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=89deabee624f90fb1c52c6ced073e66e2eca1d6b;p=fba.git Continued: - these are system-specific service files --- diff --git a/contrib/systemd-services/fedi_block_api.service b/contrib/systemd-services/fedi_block_api.service new file mode 100644 index 0000000..50f29d5 --- /dev/null +++ b/contrib/systemd-services/fedi_block_api.service @@ -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 index 0000000..d5230f9 --- /dev/null +++ b/contrib/systemd-services/fetch_blocks.service @@ -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 index 50f29d5..0000000 --- a/services/fedi_block_api.service +++ /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 index d5230f9..0000000 --- a/services/fetch_blocks.service +++ /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