From 3d1dead13b5f3d7674b98a3f8684686d8fbc681e Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 12:47:30 +0200 Subject: Initial Systemd Service Run: 2/3 Signed-off-by: Georg --- systemd/etherpad.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 systemd/etherpad.service (limited to 'systemd/etherpad.service') diff --git a/systemd/etherpad.service b/systemd/etherpad.service new file mode 100644 index 0000000..5bc093e --- /dev/null +++ b/systemd/etherpad.service @@ -0,0 +1,16 @@ +[Unit] +Description=etherpad-lite +After=syslog.target network.target + +[Service] +Type=simple +User=etherpad +Group=etherpad +WorkingDirectory=/opt/etherpad +Environment=NODE_ENV=production +Environment=PATH=/opt/etherpad/.nvm/versions/node/v16.4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin +ExecStart=/opt/etherpad/.nvm/versions/node/v16.4.0/bin/node /opt/etherpad/etherpad-lite/src/node/server.js +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3