2 Description=Pleroma social network
3 After=network.target postgresql.service
7 WorkingDirectory=/home/pleroma/pleroma
8 Environment="HOME=/home/pleroma"
9 Environment="MIX_ENV=prod"
10 ExecStart=/usr/local/bin/mix phx.server
11 ExecReload=/bin/kill $MAINPID
15 ; Some security directives.
16 ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
18 ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
20 ; 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.
22 ; Ensures that the service process and all its children can never gain new privileges through execve().
26 WantedBy=multi-user.target