This repository has been archived on 2020-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-04 12:38:33 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Pleroma
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2020-06-04 18:17:08 +00:00
|
|
|
ExecStartPre={{ pleroma.root }}/bin/pleroma_ctl migrate
|
|
|
|
ExecStart={{ pleroma.root }}/bin/pleroma start
|
|
|
|
User=nobody
|
2020-06-04 12:38:33 +00:00
|
|
|
Restart=on-failure
|
|
|
|
ProtectSystem=strict
|
2020-06-04 18:17:08 +00:00
|
|
|
TemporaryFileSystem=/:ro
|
|
|
|
BindPaths={{ pleroma.data }}:/pleroma-data /etc/pleroma
|
2020-06-04 12:38:33 +00:00
|
|
|
ProtectSystem=strict
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
LockPersonality=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
PrivateDevices=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|