roles/pleroma-otp/files/[email protected]
changeset 84 d0c40727e6ff
parent 78 18b6a82be777
child 85 dcfd23308c32
equal deleted inserted replaced
83:ccd5604f5b69 84:d0c40727e6ff
       
     1 [Unit]
       
     2 Description=Pleroma social network instance %I
       
     3 After=network.target postgresql.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 
       
    13 ExecStart=/opt/pleroma/bin/pleroma daemon
       
    14 ExecReload=/opt/pleroma/bin/pleroma stop
       
    15 KillMode=process
       
    16 Restart=on-failure
       
    17 
       
    18 ; Some security directives.
       
    19 ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
       
    20 PrivateTmp=true
       
    21 ; 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.
       
    22 ProtectHome=false
       
    23 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
       
    24 ProtectSystem=full
       
    25 ; 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.
       
    26 PrivateDevices=false
       
    27 ; Ensures that the service process and all its children can never gain new privileges through execve().
       
    28 NoNewPrivileges=true
       
    29 ; Drops the sysadmin capability from the daemon.
       
    30 CapabilityBoundingSet=~CAP_SYS_ADMIN
       
    31 
       
    32 [Install]
       
    33 WantedBy=multi-user.target