Upd server

This commit is contained in:
2023-05-21 18:54:02 +02:00
parent 181289473b
commit 802de2a5bd
19 changed files with 284 additions and 75 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=CringeInoltro
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=15
User=pi
ExecStart=/Server/CringeInoltro/StartCringeInoltro.py
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=OneShot.AfterBoot
After=network.target
[Service]
User=root
Type=exec
ExecStart=/Server/Scripts/OneShot.AfterBoot.sh
Restart=always
RestartSec=10
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Shiori
After=network.target
[Service]
User=pi
Type=exec
ExecStart=/Server/Shiori/shiori --portable serve -p 8076
WorkingDirectory=/Server/Shiori/
Restart=always
RestartSec=10
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=ShioriFeed
After=network.target
[Service]
User=pi
Type=exec
ExecStart=/Server/Shiori/ShioriFeed.py
WorkingDirectory=/Server/Shiori/
Restart=always
RestartSec=10
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,14 @@
[Unit]
Description=spacccraft
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
CPUQuota=85%
MemoryMax=384M
User=pi
ExecStart=/Server/SpaccCraft/StartSpaccCraft.sh
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[Unit]
Description=TelegramIndex
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=15
User=pi
WorkingDirectory=/Server/TelegramIndex-Fork
ExecStart=/usr/bin/bash -c "set -a; source .env; python3 -m app"
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=WebFileManager
After=network.target
[Service]
User=root
Type=exec
ExecStart=/usr/local/bin/filebrowser -a 0.0.0.0 -p 7580 -r /
WorkingDirectory=/Server/SpaccCloud
Restart=always
RestartSec=10
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,12 @@
[Unit]
Description=windog
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
User=pi
ExecStart=/Server/WinDog/StartWinDog
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=BitTorrent Daemon
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=10
User=pi
#User=qbtuser
ExecStart=/Server/Start/bittorrentd
#CPUQuota=96%
#MemoryHigh=300M
#MemoryMax=384M
[Install]
WantedBy=multi-user.target

View File

@@ -5,9 +5,9 @@ StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=5
CPUQuota=85%
MemoryMax=384M
RestartSec=10
CPUQuota=90%
MemoryMax=400M
User=root
ExecStart=sh -c "cat /var/log/diycron.log >> /var/log/diycron.log.old; sh /etc/diycron > /var/log/diycron.log"
[Install]

View File

@@ -0,0 +1,12 @@
[Unit]
Description=ncshell
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=3
User=ncshell
ExecStart=/usr/bin/ncshell
[Install]
WantedBy=multi-user.target