mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-27 15:43:22 +02:00
34 lines
742 B
Plaintext
34 lines
742 B
Plaintext
![]() |
[Unit]
|
||
|
Description=Penpot server
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ penpot_user }}
|
||
|
WorkingDirectory={{ penpot_root_dir }}/backend
|
||
|
EnvironmentFile={{ penpot_root_dir }}/etc/env
|
||
|
ExecStart={{ penpot_root_dir }}/backend/run.sh
|
||
|
SuccessExitStatus=143
|
||
|
PrivateTmp=yes
|
||
|
NoNewPrivileges=true
|
||
|
Restart=on-failure
|
||
|
MemoryLimit=2048M
|
||
|
SyslogIdentifier=penpot-server
|
||
|
Restart=on-failure
|
||
|
StartLimitInterval=0
|
||
|
RestartSec=30
|
||
|
PrivateDevices=true
|
||
|
ProtectControlGroups=true
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=full
|
||
|
ProtectKernelModules=true
|
||
|
ProtectKernelTunables=true
|
||
|
ProtectSystem=strict
|
||
|
RestrictRealtime=true
|
||
|
RestrictNamespaces=true
|
||
|
ReadWritePaths=/run {{ penpot_root_dir }}/data
|
||
|
LockPersonality=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|