From 40030c91a191d8a735b7e5d8cab1c523b86d3258 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Wed, 8 Jun 2022 18:27:25 +0300 Subject: [PATCH] sql_app: systemd unit file Signed-off-by: HeshamTB --- sql_app/tools/ibs.service | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sql_app/tools/ibs.service diff --git a/sql_app/tools/ibs.service b/sql_app/tools/ibs.service new file mode 100644 index 0000000..0f67b57 --- /dev/null +++ b/sql_app/tools/ibs.service @@ -0,0 +1,31 @@ +# This is templte to use for python venv applications +# from https://broplanner.com/wp-content/webpc-passthru.php?src=https://broplanner.com/wp-content/uploads/2022/01/Screenshot-2022-01-25-224223-1536x237.png&nocache=1 +[Unit] +After = network.target + +[Service] +User=ibs +Group=ibs +WorkingDirectory=/srv/ibs/ibs +ExecStart=/srv/ibs/ibs/run-tls + +Restart=on-failure +RestartSec=15 + +# Security +ReadWritePaths=/srv/ibs/ibs +PrivateDevices=yes +PrivateMounts=yes +PrivateTmp=yes +PrivateUsers=yes +ProtectClock=yes +ProtectControlGroups=yes +ProtectHome=yes +ProtectKernelLogs=yes +ProtectKernelModules=yes +ProtectKernelTunables=yes +ProtectProc=yes +ProtectHostname=yes + +[Install] +WantedBy=multi-user.target