From 02bae8f0e3118e013470bb7dcaccbae0444a3c0a Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Fri, 22 Aug 2025 09:29:48 +0200 Subject: [PATCH] feat: add an example systemd service --- example.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 example.service diff --git a/example.service b/example.service new file mode 100644 index 0000000..4089870 --- /dev/null +++ b/example.service @@ -0,0 +1,15 @@ +[Unit] +Description=Cozy + +[Service] +ExecStart=/home/ayo/cozy/server.mjs +Restart=always +User=nobody +# Note Debian/Ubuntu uses 'nogroup', RHEL/Fedora uses 'nobody' +Group=nogroup +Environment=PATH=/usr/bin:/usr/local/bin +Environment=NODE_ENV=production +WorkingDirectory=/home/ayo/cozy + +[Install] +WantedBy=multi-user.target