From e431cd4ce99d136a0ea388838fa23fd754e68975 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 10 Aug 2017 17:04:39 +0200 Subject: [PATCH] Create systemd.service --- conf/systemd.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 conf/systemd.service diff --git a/conf/systemd.service b/conf/systemd.service new file mode 100644 index 0000000..67786af --- /dev/null +++ b/conf/systemd.service @@ -0,0 +1,17 @@ +[Unit] +Description=CryptPad is an encrypted PAD Creator +After=syslog.target +After=network.target + +[Service] +Type=simple +User=__APP__ +Group=__APP__ +ExecStartPre=__NODEJS__ +WorkingDirectory=__FINALPATH__ +Environment="PATH=__ENV_PATH__" +ExecStart=/bin/bash -c 'exec __NODE__ app.js | tee /var/log/__APP__/__APP__.log' +Restart=always + +[Install] +WantedBy=multi-user.target