Browse Source

Created systemd script to run blog.

pull/60/head
jrtechs 5 years ago
parent
commit
b8dd1db48e
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      jrtechs.service

+ 21
- 0
jrtechs.service View File

@ -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

Loading…
Cancel
Save