Update systemd unit file

This commit is contained in:
Norm 2022-07-05 06:33:49 -04:00
parent 23bdaae38b
commit 155319f09e

View file

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Pleroma social network Description=Akkoma social network
After=network.target postgresql.service After=network.target postgresql.service
[Service] [Service]
@ -7,23 +7,23 @@ ExecReload=/bin/kill $MAINPID
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure
; Name of the user that runs the Pleroma service. ; Name of the user that runs the Akkoma service.
User=pleroma User=akkoma
; Declares that Pleroma runs in production mode. ; Declares that Akkoma runs in production mode.
Environment="MIX_ENV=prod" Environment="MIX_ENV=prod"
; Make sure that all paths fit your installation. ; Make sure that all paths fit your installation.
; Path to the home directory of the user running the Pleroma service. ; Path to the home directory of the user running the Akkoma service.
Environment="HOME=/var/lib/pleroma" Environment="HOME=/var/lib/akkoma"
; Path to the folder containing the Pleroma installation. ; Path to the folder containing the Akkoma installation.
WorkingDirectory=/opt/pleroma WorkingDirectory=/opt/akkoma
; Path to the Mix binary. ; Path to the Mix binary.
ExecStart=/usr/bin/mix phx.server ExecStart=/usr/bin/mix phx.server
; Some security directives. ; Some security directives.
; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops. ; Use private /tmp and /var/tmp folders inside a new file system namespace, which are discarded after the process stops.
PrivateTmp=true PrivateTmp=true
; 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. ; 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.
ProtectHome=true ProtectHome=true
; Mount /usr, /boot, and /etc as read-only for processes invoked by this service. ; Mount /usr, /boot, and /etc as read-only for processes invoked by this service.
ProtectSystem=full ProtectSystem=full