Add service file

This commit is contained in:
2026-04-06 21:30:42 +02:00
parent f98d157a52
commit a007b0b21b
2 changed files with 28 additions and 0 deletions

16
installer.conf Normal file
View File

@@ -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"

12
open-webui.service Normal file
View File

@@ -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