stumpapp / stump

A free and open source comics, manga and digital book server with OPDS support (WIP)

Home Page:https://stumpapp.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stump usage with prebuild binary & systemd service file

id4vip opened this issue · comments

If any body want to use stump with systemd/service file. then i want to share my working stump.service file.
feel free to customaries according to your requirements.

[Unit]
Wants=network-online.target
After=network-online.target

[Service]
Environment="STUMP_CONFIG_DIR=/mnt/dietpi_userdata/stump"
Environment="STUMP_PORT=8086"
Environment="STUMP_CLIENT_DIR=/mnt/dietpi_userdata/stump/client"
Environment="STUMP_VERBOSITY=0"
Environment="ENABLE_SWAGGER_UI=true"
Environment="STUMP_IN_DOCKER=false"
Environment="STUMP_DB_PATH=/mnt/dietpi_userdata/stump/db"
Environment="PDFIUM_PATH=/mnt/dietpi_userdata/stump/pdfium/lib/libpdfium.so"
User=stump
Group=stump
StandardOutput=inherit
StandardError=inherit
ExecStart=/mnt/dietpi_userdata/stump/stump_server
Restart=always
RestartSec=5s

[Install]
WantedBy=multi-user.target

also if somebody interested in reverse proxy( https://github.com/junkurihara/rust-rpxy ) with stump. my working rpxy.service file is as below

[Unit]
Description=rpxy
##After=network.target
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/mnt/dietpi_userdata/rpxy/rpxy_active -c /mnt/dietpi_userdata/rpxy/rpxy.toml
WorkingDirectory=/mnt/dietpi_userdata/rpxy
StandardOutput=inherit
StandardError=inherit
#Restart=on-failure
Restart=always
#RestartSec=10s
User=rpxy
Group=rpxy

[Install]
WantedBy=multi-user.target

Hey, thanks for providing these examples! If you're comfortable, you're more than welcome to add them directly to the docs (/apps/docs folder). Otherwise, I'll try and add them in shortly 🙂

Thanks for reply, please you write it as per need. thanks for your discord channel & always helping me.