From d3c07e19b85a4264084a4477509dd2ea65483026 Mon Sep 17 00:00:00 2001 From: Clarth Date: Thu, 1 Feb 2024 19:06:53 -0500 Subject: [PATCH] Add cryptalk.service Unit file for the Claytonia server. --- cryptalk.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cryptalk.service diff --git a/cryptalk.service b/cryptalk.service new file mode 100644 index 0000000..35b2d7e --- /dev/null +++ b/cryptalk.service @@ -0,0 +1,17 @@ +[Unit] +Description=Cryptalk Node.js App +Documentation=https://github.com/Hexagon/cryptalk +After=network.target + +[Service] +ExecStart=/usr/bin/npm run start +WorkingDirectory=/home/cryptochat/cryptalk +Restart=always +RestartSec=10 +Environment=NODE_ENV=production +Environment=PATH=/usr/bin +User=cryptochat +Group=cryptochat + +[Install] +WantedBy=multi-user.target