aboutsummaryrefslogtreecommitdiff
path: root/tech_blog_service
diff options
context:
space:
mode:
authorErg <uinarf@autistici.org>2024-11-28 16:40:51 +0100
committerErg <uinarf@autistici.org>2024-11-28 16:40:51 +0100
commitbf8efbce7f202f1f7650f628955fb0e42d343a1f (patch)
treed80a2556b24efdd4a9e0d8e6f5f6a11bcb3b5afd /tech_blog_service
downloadfastapi_blog-master.tar.gz
fastapi_blog-master.tar.bz2
fastapi_blog-master.zip
Initial commit. Serving main page and static html files, extra 404 error, contains openrc service file and accompanying scriptHEADmaster
Diffstat (limited to 'tech_blog_service')
-rwxr-xr-xtech_blog_service6
1 files changed, 6 insertions, 0 deletions
diff --git a/tech_blog_service b/tech_blog_service
new file mode 100755
index 0000000..25907f4
--- /dev/null
+++ b/tech_blog_service
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+
+command="/usr/local/bin/tech_blog.sh"
+pidfile="/run/${RC_SVCNAME}.pid"
+command_args="-p ${pidfile}"
+command_background=True