2 Description=Akkoma social network
3 After=network.target postgresql.service nginx.service
9 ; Name of the user that runs the Akkoma service.
12 ; Make sure that all paths fit your installation.
13 ; Path to the home directory of the user running the Akkoma service.
14 Environment="HOME=/opt/akkoma"
15 ; Path to the folder containing the Akkoma installation.
16 WorkingDirectory=/opt/akkoma
17 ; Path to the Mix binary.
18 ExecStart=/opt/akkoma/bin/pleroma start
19 ExecStop=/opt/akkoma/bin/pleroma stop
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.
24 ; The /home, /root, and /run/user folders can not be accessed by this service anymore. If your Akkoma 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.
26 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
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.
30 ; Ensures that the service process and all its children can never gain new privileges through execve().
32 ; Drops the sysadmin capability from the daemon.
33 CapabilityBoundingSet=~CAP_SYS_ADMIN
36 WantedBy=multi-user.target