pleroma/otp/files/[email protected]
changeset 104 73eb2db468ec
parent 103 78a072bbf3c1
child 182 b4ce6f1f15b7
equal deleted inserted replaced
59:b339d3c51504 104:73eb2db468ec
       
     1 [Unit]
       
     2 Description=Pleroma social network instance "%I"
       
     3 After=network.target postgresql.service nginx.service
       
     4 
       
     5 [Service]
       
     6 User=pleroma
       
     7 WorkingDirectory=/opt/pleroma
       
     8 
       
     9 Environment="HOME=/opt/pleroma"
       
    10 Environment="PLEROMA_CONFIG_PATH=/etc/pleroma/%i.config.exs"
       
    11 Environment="PLUG_TMPDIR=/tmp/%i"
       
    12 Environment="RELEASE_NODE=%[email protected]"
       
    13 
       
    14 ExecStart=/opt/pleroma/bin/pleroma start
       
    15 ExecReload=/opt/pleroma/bin/pleroma stop
       
    16 
       
    17 KillMode=process
       
    18 Restart=on-failure
       
    19 
       
    20 ; Some security directives.
       
    21 ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
       
    22 PrivateTmp=true
       
    23 ; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Pleroma user has its home folder in one of the restricted places, or use one of these folders as its working directory, you have to set this to false.
       
    24 ProtectHome=true
       
    25 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
       
    26 ProtectSystem=full
       
    27 ; Sets up a new /dev mount for the process and only adds API pseudo devices like /dev/null, /dev/zero or /dev/random but not physical devices. Disabled by default because it may not work on devices like the Raspberry Pi.
       
    28 PrivateDevices=false
       
    29 ; Ensures that the service process and all its children can never gain new privileges through execve().
       
    30 NoNewPrivileges=true
       
    31 ; Drops the sysadmin capability from the daemon.
       
    32 CapabilityBoundingSet=~CAP_SYS_ADMIN
       
    33 
       
    34 [Install]
       
    35 WantedBy=multi-user.target