roles/pleroma-otp/files/[email protected]
changeset 85 dcfd23308c32
parent 84 d0c40727e6ff
child 87 4f87097dd651
equal deleted inserted replaced
84:d0c40727e6ff 85:dcfd23308c32
     1 [Unit]
     1 [Unit]
     2 Description=Pleroma social network instance %I
     2 Description=Pleroma social network instance "%I"
     3 After=network.target postgresql.service
     3 After=network.target postgresql.service nginx.service
     4 
     4 
     5 [Service]
     5 [Service]
     6 User=pleroma
     6 User=pleroma
     7 WorkingDirectory=/opt/pleroma
     7 WorkingDirectory=/opt/pleroma
     8 
     8 
    10 Environment="PLEROMA_CONFIG_PATH=/etc/pleroma/%i.config.exs"
    10 Environment="PLEROMA_CONFIG_PATH=/etc/pleroma/%i.config.exs"
    11 Environment="PLUG_TMPDIR=/tmp/%i"
    11 Environment="PLUG_TMPDIR=/tmp/%i"
    12 
    12 
    13 ExecStart=/opt/pleroma/bin/pleroma daemon
    13 ExecStart=/opt/pleroma/bin/pleroma daemon
    14 ExecReload=/opt/pleroma/bin/pleroma stop
    14 ExecReload=/opt/pleroma/bin/pleroma stop
       
    15 
    15 KillMode=process
    16 KillMode=process
    16 Restart=on-failure
    17 Restart=on-failure
    17 
    18 
    18 ; Some security directives.
    19 ; 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 ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
    20 PrivateTmp=true
    21 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 ; 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 ProtectHome=true
    23 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
    24 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
    24 ProtectSystem=full
    25 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 ; 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 PrivateDevices=false
    27 ; Ensures that the service process and all its children can never gain new privileges through execve().
    28 ; Ensures that the service process and all its children can never gain new privileges through execve().