etherpad/templates/etc/systemd/system/etherpad.service.j2

17 lines
374 B
Django/Jinja

[Unit]
Description=Etherpad Server
After=syslog.target network.target
[Service]
Type=simple
User={{ etherpad_username }}
Group={{ etherpad_group }}
WorkingDirectory={{ etherpad_app_dir }}
Environment=NODE_ENV=production
ExecStart={{ etherpad_app_dir }}/bin/run.sh
StandardOutput=file:{{ etherpad_logfile }}
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target