aboutsummaryrefslogtreecommitdiff
path: root/cmd/httpdebug/httpdebug.service
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-27 14:02:53 -0400
committerXe Iaso <me@xeiaso.net>2025-04-27 14:05:04 -0400
commit1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e (patch)
tree806543b40d615e1bf57d4a83fdba88bb8008e088 /cmd/httpdebug/httpdebug.service
parent10e176a023ee1a4955160c86f0dc71a435bdf866 (diff)
downloadx-1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e.tar.xz
x-1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e.zip
feat(httpdebug): quiet mode and function as a systemd service
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/httpdebug/httpdebug.service')
-rw-r--r--cmd/httpdebug/httpdebug.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmd/httpdebug/httpdebug.service b/cmd/httpdebug/httpdebug.service
new file mode 100644
index 0000000..01cf9af
--- /dev/null
+++ b/cmd/httpdebug/httpdebug.service
@@ -0,0 +1,13 @@
+[Unit]
+Description="http debugger"
+
+[Service]
+ExecStart=/usr/bin/httpdebug
+Restart=always
+RestartSec=30s
+EnvironmentFile=/etc/within.website/x/httpdebug.env
+LimitNOFILE=infinity
+DynamicUser=true
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file