Updated Install as a daemon (markdown)

dny238
2015-06-09 14:23:18 -06:00
parent 0c503bc612
commit cc09760b57
+19
@@ -14,6 +14,25 @@ This installation assumes Headphones is installed to `/opt/headphones`. Make sur
* `sudo update-rc.d headphones defaults`
* `sudo service headphones [start | stop | reload | restart]`
## CentOS / RedHat
This installation assumes Headphones is installed to `/opt/headphones`. Make sure all paths are correct and accessible. A common mistake is that a daemon user has no read and/or write permissions.
* `sudo adduser --system sabnzbd`
* `mkdir /home/sabnzbd`
* `mkdir /etc/headphones`
* `mkdir -R chown sabnzbd:sabnzbd /home/sabnzbd'
* `cd /home/sabnzbd`
* `git clone https://github.com/rembo10/headphones.git`
* Adjust settings in `/etc/default/headphones`. See the comments in `/home/sabnzbd/headphones/init-scripts/init.fedora.centos.systemd` for the list of parameters.
* `sudo cp /home/sabnzbd/headphones/init-scripts/init.fedora.centos.systemd /home/sabnzbd/headphones/init-scripts/headphones.service`
* `sudo chmod +x /home/sabnzbd/headphones/init-scripts/headphones.service`
* `sudo touch /etc/headphones/headphones.ini
* `sudo chown sabnzbd:sabnzbd /etc/headphones/headphones.ini
* `sudo cp /home/sabnzbd/headphones/init-scripts/headphones.service /lib/systemd/system/headphones.service`
* `sudo systemctl daemon-reload`
* `sudo systemctl enable headphones.service`
* `sudo service headphones [start | stop | reload | restart]`
## Synology
* Go to your DSM > Users > Create user and create user `headphones`