holgersson-overlay/net-im/dendrite/files/dendrite.service
Nils Freydank 163ef0a26e
net-im/dendrite: Drop polylith mode including possible breakage
Upstream dropped the polylith mode in 0.12.0 as announced in earlier releases.
This leads to some renaming of files, see e.g. upstream issue 2975[1].

As I've got no OpenRC system or container right now I can't test the modified
OpenRC init scripts. In case you have one feedback either way is appreciated
- confirmations that it's working, bug reports if it failes or even just
suggestions for improvement.

As the ebuild didn't build (failed in the install phase) before this fixup
there is no revbump necessary.

This commit also adds an service file which is based upon upstream's
example for their monolith setup (but with paths in /usr instead of opt)[2].

[1] https://github.com/matrix-org/dendrite/issues/2975
[2] https://github.com/matrix-org/dendrite/blob/main/docs/systemd/monolith-example.service

Signed-off-by: Nils Freydank <nils.freydank@posteo.de>
2023-03-21 22:57:02 +01:00

20 lines
383 B
Desktop File

[Unit]
Description=Dendrite Matrix Homeserver
After=syslog.target
After=network.target
After=postgresql.service
[Service]
Environment=GODEBUG=madvdontneed=1
RestartSec=2s
Type=simple
User=dendrite
Group=dendrite
ExecStart=/usr/bin/dendrite --config=/etc/dendrite/config.yaml
WorkingDirectory=/var/lib/dendrite/
Restart=always
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target