mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-16 08:39:36 +00:00
Updated Autostart on Linux (markdown)
parent
eeca1923de
commit
3b1e670021
1 changed files with 47 additions and 0 deletions
|
@ -1,3 +1,50 @@
|
||||||
|
## Systemd ##
|
||||||
|
Modern Linux systems have been updated to use the new systemd standard. The method is very simple and involves creating a service file then enabling it.
|
||||||
|
|
||||||
|
**Create the service file**
|
||||||
|
|
||||||
|
_Be sure to modify the user, group, mono path and install directory._
|
||||||
|
|
||||||
|
Create the file lidarr.service with the content:
|
||||||
|
```
|
||||||
|
[Unit]
|
||||||
|
Description=Lidarr Daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User={User account for Lidarr}
|
||||||
|
Group={Group account for Lidarr}
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/bin/mono /opt/Lidarr/Lidarr.exe -nobrowser
|
||||||
|
TimeoutStopSec=20
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
```
|
||||||
|
|
||||||
|
**Move the file to your system directory**
|
||||||
|
|
||||||
|
Typically located in `/etc/systemd/system/`, **verify before proceeding**. Will differ based on distribution.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mv lidarr.service /etc/systemd/system/
|
||||||
|
```
|
||||||
|
|
||||||
|
**Add Lidarr to startup**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl enable lidarr.service
|
||||||
|
```
|
||||||
|
|
||||||
|
**Start Lidarr service**
|
||||||
|
|
||||||
|
Start Lidarr via systemd and verify status.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl start lidarr.service
|
||||||
|
systemctl status lidarr.service
|
||||||
|
```
|
||||||
|
|
||||||
## Init.d Script (Debian/Ubuntu) ##
|
## Init.d Script (Debian/Ubuntu) ##
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue