From 570ed2aed2c1e5465767019b1de52fbd8028fad4 Mon Sep 17 00:00:00 2001 From: Georg Date: Wed, 21 Jul 2021 13:04:22 +0200 Subject: Initial Systemd Service Run: 3/3 Signed-off-by: Georg --- systemd/cytube.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 systemd/cytube.service (limited to 'systemd/cytube.service') diff --git a/systemd/cytube.service b/systemd/cytube.service new file mode 100644 index 0000000..cfb507d --- /dev/null +++ b/systemd/cytube.service @@ -0,0 +1,15 @@ +[Unit] +Description=CyTube +After=network.target mysqld.service + +[Service] +Type=simple +User=cytube +Group=cytube +WorkingDirectory=/opt/cytube/sync/ +Environment=NODE_ENV=production +ExecStart=/opt/cytube/.nvm/versions/node/v14.17.0/bin/node /opt/cytube/sync/index.js +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3