Add service file
This commit is contained in:
16
installer.conf
Normal file
16
installer.conf
Normal 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
12
open-webui.service
Normal 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
|
||||||
Reference in New Issue
Block a user