From a007b0b21bafc7d7aec667309c9b60220b15a2fb Mon Sep 17 00:00:00 2001 From: Jali Date: Mon, 6 Apr 2026 21:30:42 +0200 Subject: [PATCH] Add service file --- installer.conf | 16 ++++++++++++++++ open-webui.service | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 installer.conf create mode 100644 open-webui.service diff --git a/installer.conf b/installer.conf new file mode 100644 index 0000000..2a8032f --- /dev/null +++ b/installer.conf @@ -0,0 +1,16 @@ +# This file contains the main configuration settings for the +# open-webui installer. + +# Name of the user to create for the service. +# This user will not be able to interactivly log in, but only to run the service. +# The default value is 'open-webui' +USER="open-webui" + + +# Name of the group, the user is using. +GROUP="open-webui" + +# The directory to install into. +TARGET_DIR="/opt/open-webui" + + diff --git a/open-webui.service b/open-webui.service new file mode 100644 index 0000000..f28a560 --- /dev/null +++ b/open-webui.service @@ -0,0 +1,12 @@ +[Unit] +Description=Open-WebUI Service +After=network.target + +[Service] +ExecStart=#TARGET_DIR#/run-open-webui +Restart=always +User=#USER# +Group=#GROUP# + +[Install] +WantedBy=multi-user.target