You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
619 B
26 lines
619 B
5 years ago
|
[Unit]
|
||
|
Description=Etherpad ({{ etherpad_id }} Instance)
|
||
|
After=syslog.target network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User={{ etherpad_user }}
|
||
|
Group={{ etherpad_user }}
|
||
|
WorkingDirectory={{ etherpad_root_dir }}/web
|
||
|
ExecStartPre=/bin/rm -f {{ etherpad_root_dir }}/web/var/minified*
|
||
|
ExecStart=/usr/bin/node ./node_modules/ep_etherpad-lite/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
|