Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run WebUI as a service #4666

Closed
savisaar2 opened this issue Nov 19, 2023 · 2 comments
Closed

Run WebUI as a service #4666

savisaar2 opened this issue Nov 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@savisaar2
Copy link

Description

I want to be able to run the web interface as a service instead of having to manually run it via terminal in Linux.

Additional Context

Currently when executing the bash file (start_linux.sh) as a service, it seems to restart continuously.

@savisaar2 savisaar2 added the enhancement New feature or request label Nov 19, 2023
@fluo10
Copy link

fluo10 commented Nov 20, 2023

@savisaar2
If you are refferring to systemd.service, you can write your own service file.
I'm using the file like below for my own use.

#/etc/systemd/system/textgen.service
[Unit]
After=network.target

[Service]
Type=simple
ExecStart=/bin/bash /path/to/start_linux.sh
User=textgen
Group=textgen

[Install]
WantedBy=multi-user.target

@savisaar2
Copy link
Author

Thank you @fluo10 i thought I tried creating a service file but the service kept restarting. The one above works. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants