2021-02-20 18:37:33 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Pleroma social network
|
|
|
|
After=network.target
|
|
|
|
Requires=postgresql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=pleroma
|
|
|
|
WorkingDirectory=/opt/pleroma
|
|
|
|
Environment="HOME=/opt/pleroma"
|
|
|
|
Environment="PLEROMA_CONFIG_PATH=/opt/pleroma/pleroma.config.exs"
|
|
|
|
Environment="PLUG_TMPDIR=/tmp/pleroma"
|
|
|
|
ExecStart=/opt/pleroma/release/bin/pleroma start
|
|
|
|
ExecStop=/opt/pleroma/release/bin/pleroma stop
|
2021-04-02 06:05:33 +00:00
|
|
|
Restart=always
|
2021-02-20 18:37:33 +00:00
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectSystem=full
|
|
|
|
CapabilityBoundingSet=~CAP_SYS_ADMIN
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|