You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
596 B
25 lines
596 B
5 years ago
|
[Unit]
|
||
|
Description=Synapse Matrix homeserver
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ synapse_user }}
|
||
|
Group={{ synapse_user }}
|
||
|
Environment=LD_PRELOAD=/usr/lib64/libjemalloc.so.1
|
||
|
PermissionsStartOnly=yes
|
||
|
ExecStart={{ synapse_root_dir }}/bin/python3 -m synapse.app.homeserver -c {{ synapse_root_dir }}/etc/homeserver.yaml -n
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=yes
|
||
|
NoNewPrivileges=yes
|
||
|
MemoryLimit={{ synapse_max_mem }}M
|
||
|
SyslogIdentifier=matrix-synapse
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=30
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|