2021-02-12 15:01:35 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Matrix Media Repo
|
|
|
|
After=network.target
|
|
|
|
Requires=postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=matrix-media-repo
|
|
|
|
Group=matrix-media-repo
|
|
|
|
ExecStart=/opt/matrix-media-repo/src/bin/media_repo -config /opt/matrix-media-repo/config.yaml
|
|
|
|
WorkingDirectory=/opt/matrix-media-repo/
|
2021-04-02 06:05:33 +00:00
|
|
|
Restart=always
|
2022-02-19 19:02:08 +00:00
|
|
|
RestartSec=2
|
2021-02-12 15:01:35 +00:00
|
|
|
LimitNOFILE=65536
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|