This commit is contained in:
2024-02-28 16:15:15 +01:00
parent 0f6a0a1ff0
commit 537ef4be7e
17 changed files with 107 additions and 34 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description=BackupAll.service
After=network.target
[Service]
User=root
ExecStart=/usr/bin/bash -c "zx /Main/Server/Scripts/BackupAll.zx.mjs"

View File

@ -0,0 +1,9 @@
[Install]
WantedBy=default.target
[Unit]
Description=BackupAll.timer
[Timer]
OnCalendar=*-*-2,5,8,11,14,17,20,23,26,29 00:03:00
Unit=BackupAll.service

View File

@ -5,4 +5,4 @@ Wants=freshrss.timer
[Service]
User=www-data
Type=simple
ExecStart=/usr/bin/php /Server/www/FreshRSS/app/actualize_script.php
ExecStart=/usr/bin/php /Main/Server/www/FreshRSS/app/actualize_script.php

View File

View File

@ -0,0 +1,11 @@
[Unit]
Description=RssToTelegramBot
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=15
User=tux
ExecStart=/bin/sh /Main/Server/Bots/RSS-to-Telegram-Bot-Fork/StartRssToTelegramBot.sh
[Install]
WantedBy=multi-user.target

6
Server/Root/etc/systemd/system/Shiori.service Executable file → Normal file
View File

@ -2,10 +2,10 @@
Description=Shiori
After=network.target
[Service]
User=pi
User=tux
Type=exec
ExecStart=/Server/Shiori/shiori --portable serve -p 8076
WorkingDirectory=/Server/Shiori/
ExecStart=/Main/Server/Shiori/shiori --portable serve -p 8076
WorkingDirectory=/Main/Server/Shiori/
Restart=always
RestartSec=10
[Install]

6
Server/Root/etc/systemd/system/ShioriFeed.service Executable file → Normal file
View File

@ -2,10 +2,10 @@
Description=ShioriFeed
After=network.target
[Service]
User=pi
User=tux
Type=exec
ExecStart=/Server/Shiori/ShioriFeed.py
WorkingDirectory=/Server/Shiori/
ExecStart=/Main/Server/Shiori/ShioriFeed.py
WorkingDirectory=/Main/Server/Shiori/
Restart=always
RestartSec=10
[Install]

6
Server/Root/etc/systemd/system/TelegramIndex.service Executable file → Normal file
View File

@ -1,13 +1,11 @@
[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"
User=root
ExecStart=/usr/bin/bash /Main/Server/TelegramIndex-Fork/StartTelegramIndex.sh
[Install]
WantedBy=multi-user.target

0
Server/Root/etc/systemd/system/WebFileManager.service Executable file → Normal file
View File

5
Server/Root/etc/systemd/system/WinDog.service Executable file → Normal file
View File

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

View File

@ -0,0 +1,11 @@
[Unit]
Description=WuppiMini
After=network.target
[Service]
User=tux
Type=exec
ExecStart=/usr/bin/env node /Main/Server/WuppiMini/index.js
Restart=always
RestartSec=5
[Install]
WantedBy=default.target

View File

@ -0,0 +1,13 @@
[Unit]
Description=Matterbridge daemon
After=network-online.target
[Service]
Type=simple
ExecStart=/Main/Server/matterbridge/matterbridge.run -conf /Main/Server/matterbridge/matterbridge.toml
Restart=always
RestartSec=5s
User=tux
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,17 @@
[Unit]
Description=Pixelfed task queueing via Laravel Horizon
After=network.target
#Requires=mariadb
#Requires=php-fpm
#Requires=redis
#Requires=nginx
[Service]
Type=simple
#ExecStart=/bin/sh -c "/usr/bin/php /Main/Server/www/pixelfed/artisan queue:work"
ExecStart=/usr/bin/php /Main/Server/www/pixelfed_liminalgici/artisan horizon
User=www-data
Restart=on-failure
[Install]
WantedBy=multi-user.target