From ef425e0e4b8933e831914eafd7a49f1c6619366d Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 30 Oct 2024 19:27:15 +0100 Subject: add everything for a proper build process --- utils/gocgi@.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 utils/gocgi@.service (limited to 'utils/gocgi@.service') diff --git a/utils/gocgi@.service b/utils/gocgi@.service new file mode 100644 index 0000000..9f2cf4a --- /dev/null +++ b/utils/gocgi@.service @@ -0,0 +1,18 @@ +[Unit] +Description=CGI HTTP instance %i +After=network.target + +[Service] +Type=simple +EnvironmentFile=/etc/gocgi/%i.conf +ExecStart=/usr/bin/gocgi --path "${GOCGI_BIN}" --dir "${GOCGI_WORKDIR}" --env="${GOCGI_ENV}" --listen "${STATE_DIRECTORY}/%i.sock" + +RuntimeDirectory=gocgi +DynamicUser=yes +ProtectSystem=yes +PrivateDevices=yes +ProtectKernelTunables=yes +ProtectControlGroups=yes + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-70-g09d2