puppet-ethercalc/templates/ethercalc.service.erb
Jens Harbott 05b1414b9b Update ethercalc to work with Ubuntu Xenial
- Set up service via systemd instead of upstart.
 - defupalt to using nodejs v6.x because of library issues.
 - upstream nodejs puppet knows how to do legacy symlinks on required
   platforms.

Depends-On: I2355cf58c899bf5f78173b2ed9da26548a9592d0
Depends-On: Ia7966fb9578d0d79f3a7f9480e3a956555737dc8
Change-Id: Ia3f4d3bbacbbe1a42a33a4f934173fb54a582a8e
2018-08-09 20:56:27 +02:00

16 lines
373 B
Plaintext

[Unit]
Description=ethercalc (real-time collaborative spreadsheet editing)
After=syslog.target network.target
[Service]
Type=simple
User=<%= @ethercalc_user %>
Group=<%= @ethercalc_user %>
ExecStart=/bin/bash <%= @base_install_dir %>/node_modules/ethercalc/bin/run.sh
LimitNOFILE=8192:16384
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target