mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-27 18:46:29 +00:00
ef24ea2678
* Add madvdontneed=1 to decrease RAM consumption for systemd service * Update monolith-example.service Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
19 lines
353 B
Desktop File
19 lines
353 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
|
|
WorkingDirectory=/opt/dendrite/
|
|
ExecStart=/opt/dendrite/bin/dendrite-monolith-server
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|