Browse Source

Created a systemd script to launch the program.

pull/17/head
jrtechs 5 years ago
parent
commit
47387c94cb
3 changed files with 21 additions and 6 deletions
  1. +0
    -5
      html/videos.html
  2. +21
    -0
      jrtechsvideos.service
  3. +0
    -1
      routes/icon.js

+ 0
- 5
html/videos.html View File

@ -1,9 +1,4 @@
<h1 class="text-center">Videos</h1>
<div class="row">
<center><h1>Videos</h1></center>
</div>
<input id="videoFilter" class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<br>

+ 21
- 0
jrtechsvideos.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 jrtechsvideos.service
# start the service: systemctl start jrtechsvideos
[Unit]
Description=Videos site for jrtechs
Documentation=https://videos.jrtechs.net
After=network.target
[Service]
Type=simple
User=jeff
WorkingDirectory=/var/www/video.jrtechs.net/HomeBrewPlex
ExecStart=/bin/bash /var/www/video.jrtechs.net/HomeBrewPlex/run.sh
Restart=on-failure
[Install]
WantedBy=multi-user.target

+ 0
- 1
routes/icon.js View File

@ -36,7 +36,6 @@ routes.get('/', (request, result) =>
}
else
{
console.log("reading ./icon/public/" + name);
file = fs.readFileSync("./icon/public/" + name);
}

Loading…
Cancel
Save