2019-08-07 15:13:10 +02:00
|
|
|
[Unit]
|
2020-11-03 14:16:38 +01:00
|
|
|
Description=Ethercalc, the collaborative spreadsheet editor.
|
2019-08-07 15:13:10 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2020-11-03 16:07:39 +01:00
|
|
|
WorkingDirectory=__FINALPATH__
|
2020-11-03 16:14:09 +01:00
|
|
|
Environment="PATH=__ENV_PATH__"
|
|
|
|
Environment="NODE_ENV=production"
|
2021-06-01 19:26:14 +02:00
|
|
|
ExecStart=__FINALPATH__/bin/ethercalc --host 127.0.0.1 --port __PORT__ --expire __EXPIRE__ --polling
|
|
|
|
#--basepath /path/prefix
|
2019-08-07 15:13:10 +02:00
|
|
|
RuntimeMaxSec=86400
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|