rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.36k stars 602 forks source link

Headphones will not restart from GUI #3196

Open FizzGiGG opened 5 years ago

FizzGiGG commented 5 years ago

Ubuntu 18.04 Installed to /opt/headphones Running as headphones user (home dir exists, fwiw) Headphones has ownership of /opt/headphones/.

Just as the title states. If I click restart from the web interface, Headphones becomes unavailable. service headphones status shows it as running. A restart or stop/start of the headphones service does not help. Only a restart of the server helps.

image

I've seen this issue with other services I have run on Linux. To me it appears that the headphones user just doesn't have the permissions to restart|start|stop it's own application/service.

Here's service status info:

user@tools:~$ sudo service headphones status ● headphones.service - LSB: starts instance of Headphones Loaded: loaded (/etc/init.d/headphones; generated) Active: active (running) since Mon 2019-02-25 09:17:37 CST; 1min 55s ago Docs: man:systemd-sysv-generator(8) Process: 898 ExecStart=/etc/init.d/headphones start (code=exited, status=0/SUCCESS) Tasks: 13 (limit: 9485) CGroup: /system.slice/headphones.service └─1041 /usr/bin/python Headphones.py --quiet --daemon --nolaunch --pidfile=/var/run/headphones/headphones.pid

Feb 25 09:17:29 dastools systemd[1]: Starting LSB: starts instance of Headphones... Feb 25 09:17:30 dastools headphones[898]: * Starting Headphones Feb 25 09:17:37 dastools headphones[898]: ...done. Feb 25 09:17:37 dastools systemd[1]: Started LSB: starts instance of Headphones.

Any guidance is much appreciated.