From f65ddaa0f147a0078d561ec6dd53792ff09bb3db Mon Sep 17 00:00:00 2001 From: Perflyst Date: Sat, 19 Jan 2019 15:04:28 +0100 Subject: [PATCH 1/2] Add invidious.service --- invidious.service | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 invidious.service diff --git a/invidious.service b/invidious.service new file mode 100644 index 00000000..556b862f --- /dev/null +++ b/invidious.service @@ -0,0 +1,25 @@ +[Unit] +Description=Invidious (An alternative YouTube front-end) +After=syslog.target +After=network.target + +[Service] +RestartSec=2s +Type=simple + +# set user and group +User=invidious +Group=invidious + +# configure location +WorkingDirectory=/home/invidious +ExecStart=/home/invidious/invidious/invidious + +Restart=always + +# default log output is syslog, to disable log enable both +#StandardOutput=null +#StandardError=null + +[Install] +WantedBy=multi-user.target From af9134ffb440484c0d0bb6c2db6db673f589fbdc Mon Sep 17 00:00:00 2001 From: Perflyst Date: Sat, 19 Jan 2019 15:08:26 +0100 Subject: [PATCH 2/2] Add systemd service information to README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 01ab9e6c..c3c28dc4 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,14 @@ $ curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/insta $ ./sentry ``` +## Optional +Create a systemd service to run Invidious in background. Edit `invidious.service` to change your installation path and log location. Than copy and enable the systemd service. +``` +$ sudo cp invidious.service /etc/systemd/system/invidious.service +$ sudo systemctl enable invidious.service +$ sudo systemctl start invidious.service +``` + ## Extensions - [Alternate Tube Redirector](https://addons.mozilla.org/en-US/firefox/addon/alternate-tube-redirector/): Automatically open Youtube Videos on alternate sites like Invidious or Hooktube.