Etherpad Lite (Debian): Unterschied zwischen den Versionen

Aus MattWiki
(Die Seite wurde neu angelegt: „Anleitung für Etherpad Lite auf Debian 8 mit systemd == Installation als Dienst == Create a user called etherpad-lite adduser --system --home=/srv/etherpa…“)
 
Keine Bearbeitungszusammenfassung
Zeile 26: Zeile 26:
Run  
Run  


systemctl enable etherpad-lite  
systemctl enable etherpad-lite  


to enable the service on boot.
to enable the service on boot.

Version vom 11. Dezember 2015, 21:42 Uhr

Anleitung für Etherpad Lite auf Debian 8 mit systemd

Installation als Dienst

Create a user called etherpad-lite

adduser --system --home=/srv/etherpad-lite --group etherpad-lite

Ensure the etherpad-lite user has full access to the etherpad-lite source.

Create a new file etherpad-lite.service in /etc/systemd/system/

[Unit]
Description=etherpad-lite (real-time collaborative document editing)
After=syslog.target network.target 

[Service]
Type=simple
User=etherpad-lite
Group=etherpad-lite
ExecStart=/srv/etherpad-lite/bin/run.sh

[Install]
WantedBy=multi-user.target


Run

systemctl enable etherpad-lite 

to enable the service on boot.


Dienststeuerung

systemctl start etherpad-lite         # start the service

NB: might need to change "/srv/etherpad-lite/bin/run.sh" with "/bin/sh /srv/etherpad-lite/bin/run.sh" according to configuration