Gapadriel/etherpad-service: Unterschied zwischen den Versionen

Aus Stratum 0
Wechseln zu:Navigation, Suche
(+Restart)
K (<pre>-Tag für korrekte Darstellung des Unitfiles)
Zeile 1: Zeile 1:
 +
<pre>
 
[Unit]
 
[Unit]
 
Description=Run Etherpad-lite, the collaborative editor.
 
Description=Run Etherpad-lite, the collaborative editor.
 
After=rsyslog.service network.target
 
After=rsyslog.service network.target
 
Requires=rsyslog.service network.target
 
Requires=rsyslog.service network.target
 
+
 
[Service]
 
[Service]
 
Type=simple
 
Type=simple
Zeile 13: Zeile 14:
 
User=etherpad
 
User=etherpad
 
Group=etherpad
 
Group=etherpad
 
+
 
[Install]
 
[Install]
 
WantedBy=multi-user.target
 
WantedBy=multi-user.target
 +
</pre>

Version vom 18. April 2018, 09:07 Uhr

[Unit]
Description=Run Etherpad-lite, the collaborative editor.
After=rsyslog.service network.target
Requires=rsyslog.service network.target
 
[Service]
Type=simple
Environment=NODE_ENV=production
ExecStart=/var/lib/etherpad/etherpad-lite/bin/run.sh
WorkingDirectory=/var/lib/etherpad/etherpad-lite/
Restart=always
RestartSec=5
User=etherpad
Group=etherpad
 
[Install]
WantedBy=multi-user.target