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