Add System Files

This commit is contained in:
Samuel Lorch 2024-07-06 01:20:01 +02:00
parent a45becb2ab
commit 265b2c1633
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,18 @@
[Unit]
Description=morffix worker
ConditionPathExists=/opt/morffix/morffix
After=network.target
Wants=morffix.service
[Service]
Type=simple
User=root
LimitNOFILE=1024
Restart=on-failure
RestartSec=10
StartLimitIntervalSec=60
WorkingDirectory=/opt/morffix
ExecStart=/opt/morffix/morffix
[Install]
WantedBy=multi-user.target

19
systemd/morffix.service Normal file
View file

@ -0,0 +1,19 @@
[Unit]
Description=morffix
ConditionPathExists=/opt/morffix/morffix
After=network.target
Wants=postgresql@15-main.service
[Service]
Type=simple
User=root
Group=media_library
LimitNOFILE=1024
Restart=on-failure
RestartSec=10
StartLimitIntervalSec=60
WorkingDirectory=/opt/morffix
ExecStart=/opt/morffix/morffix -server
[Install]
WantedBy=multi-user.target