mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
24
roles/etherpad/templates/etherpad.service.j2
Normal file
24
roles/etherpad/templates/etherpad.service.j2
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Etherpad ({{ etherpad_id }} Instance)
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={{ etherpad_user }}
|
||||
Group={{ etherpad_user }}
|
||||
WorkingDirectory={{ etherpad_root_dir }}/app
|
||||
ExecStart=/usr/bin/node ./src/node/server.js
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
NoNewPrivileges=yes
|
||||
MemoryLimit=1024M
|
||||
SyslogIdentifier=etherpad-{{ etherpad_id }}
|
||||
Restart=always
|
||||
Environment=NODE_ENV=production
|
||||
StartLimitInterval=0
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user