From b8dd1db48e141ac45585537ab12a7c6fc313cfbf Mon Sep 17 00:00:00 2001 From: jrtechs Date: Mon, 28 Jan 2019 20:47:09 -0500 Subject: [PATCH] Created systemd script to run blog. --- jrtechs.service | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 jrtechs.service diff --git a/jrtechs.service b/jrtechs.service new file mode 100644 index 0000000..7db9130 --- /dev/null +++ b/jrtechs.service @@ -0,0 +1,21 @@ +# File Location /lib/systemd/system +# +# After file creation run: systemctl daemon-reload +# enable service on start up: systemctl enable jeff +# start the service: systemctl start jrtechs + + +[Unit] +Description=Node JS Blog for Jrtechs +Documentation=https://jrtechs.net +After=network.target + +[Service] +Type=simple +User=jeff +WorkingDirectory=/var/www/jrtechs.net/public_html/blog/NodeJSBlog/ +ExecStart=/bin/bash /var/www/jrtechs.net/public_html/blog/NodeJSBlog/run +Restart=on-failure + +[Install] +WantedBy=multi-user.target