Resolve conflicts
[akkoma] / rel / files / installation / pleroma.service
1 [Unit]
2 Description=Pleroma social network
3 After=network.target postgresql.service nginx.service
4
5 [Service]
6 KillMode=process
7 Restart=on-failure
8
9 ; Name of the user that runs the Pleroma service.
10 User=pleroma
11
12 ; Make sure that all paths fit your installation.
13 ; Path to the home directory of the user running the Pleroma service.
14 Environment="HOME=/opt/pleroma"
15 ; Path to the folder containing the Pleroma installation.
16 WorkingDirectory=/opt/pleroma
17 ; Path to the Pleroma binary.
18 ExecStart=/opt/pleroma/bin/pleroma start
19 ExecStop=/opt/pleroma/bin/pleroma stop
20
21 ; Some security directives.
22 ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
23 PrivateTmp=true
24 ; 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.
25 ProtectHome=true
26 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
27 ProtectSystem=full
28 ; 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.
29 PrivateDevices=false
30 ; Ensures that the service process and all its children can never gain new privileges through execve().
31 NoNewPrivileges=true
32 ; Drops the sysadmin capability from the daemon.
33 CapabilityBoundingSet=~CAP_SYS_ADMIN
34
35 [Install]
36 WantedBy=multi-user.target