mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Merge pull request #297 from Perflyst/systemd-service
Add systemd service
This commit is contained in:
commit
277dda0dcb
2 changed files with 33 additions and 0 deletions
|
@ -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.
|
||||
|
|
25
invidious.service
Normal file
25
invidious.service
Normal file
|
@ -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
|
Loading…
Reference in a new issue