Skip to content

Commit

Permalink
fix readme issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmon committed Feb 10, 2022
1 parent ccbe370 commit 6b00714
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ While technically rcgdip can run anywhere, it is recommended to run it alongside

```bash
sudo useradd --home-dir /var/lib/rcgdip --create-home --system --shell /usr/sbin/nologin rcgdip
sudo chown rcgdip: /etc/rcgdip
sudo chown rcgdip: /var/lib/rcgdip
sudo chmod 750 /var/lib/rcgdip
sudo cp ~/rcgdip_download_or_built /usr/local/bin/rcgdip # adapt source file from previous steps here
sudo wget https://github.com/hekmon/rcgdip/releases/download/v0.1.0/rcgdip_linux_amd64 -O /usr/local/bin/rcgdip
sudo chmod +x /usr/local/bin/rcgdip
# adapt to the group of your rclone config file, here the rclone config file is owned (and readable) by the rclone group
sudo usermod -a -G rclone rcgdip
```

#### systemd service
Expand All @@ -52,14 +55,15 @@ BindsTo=plexmediaserver.service
Type=notify
User=rcgdip
WorkingDirectory=~
EnvironmentFile=/etc/rclone/rcgdip
EnvironmentFile=/etc/default/rcgdip
ExecStart=/usr/local/bin/rcgdip
ExecReload=/bin/kill -SIGHUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
```

If your rclone mount is started with systemd too (for example using [rclonemount](https://github.com/hekmon/rclonemount)), add it to `After=` and `BindsTo=` as well. Eg:
Expand All @@ -85,14 +89,15 @@ BindsTo=plexmediaserver.service
Type=notify
User=rcgdip
WorkingDirectory=~
EnvironmentFile=/etc/rclone/rcgdip_%i
EnvironmentFile=/etc/default/rcgdip_%i
ExecStart=/usr/local/bin/rcgdip -instance %i
ExecReload=/bin/kill -SIGHUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
```

### Configure rcgdip
Expand Down

0 comments on commit 6b00714

Please sign in to comment.