Add System Files
This commit is contained in:
parent
a45becb2ab
commit
265b2c1633
2 changed files with 37 additions and 0 deletions
18
systemd/morffix-worker.service
Normal file
18
systemd/morffix-worker.service
Normal 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
19
systemd/morffix.service
Normal 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
|
Loading…
Add table
Reference in a new issue