
Add a service file for later Ubuntu versions. Centralise the logging into init.pp as it's not as easy to get logs to file from stdout/err via systemd. Fix up the logrotation while we're there Change-Id: I43ea764d070fb44502bda0c845485769dace6ff3
17 lines
384 B
Plaintext
17 lines
384 B
Plaintext
[Unit]
|
|
Description=Etherpad-lite, the collaborative editor.
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=<%= @ep_user %>
|
|
Group=<%= @ep_user %>
|
|
WorkingDirectory=<%= @base_install_dir %>/etherpad-lite
|
|
ExecStart=/usr/bin/nodejs node_modules/ep_etherpad-lite/node/server.js
|
|
Restart=always
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|