Hi, I've a strange issue with pyload, I installed it trough the aur and I followed the wiki page, but I not changed the pyload.service, so the service is the same from the aur package
$this->bbcode_second_pass_code('', '[Unit]
Description=pyLoad Core
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/pyLoadCore --daemon --configdir=/var/lib/pyload
Restart=on-abort
KillSignal=SIGQUIT
PIDFile=/var/lib/pyload/pyload.pid
User=pyload
Group=pyload
[Install]
WantedBy=multi-user.target
')
I configured pyload, the -s param, so I pointed the config to /var/lib/pyload
So I start the pyload.service and I check the status
$this->bbcode_second_pass_code('', 'sudo systemctl status pyload
● pyload.service - pyLoad Core
Loaded: loaded (/usr/lib/systemd/system/pyload.service; enabled)
Active: active (running) since Mon 2014-04-07 23:02:58 CEST; 8min ago
Process: 11535 ExecStart=/usr/bin/pyLoadCore --daemon --configdir=/var/lib/pyload (code=exited, status=0/SUCCESS)
Main PID: 11538 (python2)
CGroup: /system.slice/pyload.service
└─11538 python2 /usr/bin/pyLoadCore --daemon --configdir=/var/lib/pyload
Apr 07 23:02:57 nsa325v2 pyLoadCore[11535]: Daemon PID 11538
Apr 07 23:02:58 nsa325v2 systemd[1]: PID file /var/lib/pyload/pyload.pid not readable (yet?) after start.
Apr 07 23:02:58 nsa325v2 systemd[1]: Started pyLoad Core.')
But if I try to connect to 8000 port, nothing happen! And I don't know why I've this error
$this->bbcode_second_pass_code('', 'PID file /var/lib/pyload/pyload.pid not readable (yet?) after start.')
$this->bbcode_second_pass_code('', 'ls -lah /var/lib/pyload/pyload.pid
-rw-rw-rw- 1 pyload pyload 5 Apr 7 23:02 /var/lib/pyload/pyload.pid')
Another strange issue is that I changed the user that run pyload, so I edited the pyload.service
$this->bbcode_second_pass_code('', '[Unit]
Description=pyLoad Core
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/pyLoadCore --daemon
Restart=on-abort
KillSignal=SIGQUIT
PIDFile=/home/muletto/.pyload/pyload.pid
User=muletto
Group=muletto
[Install]
WantedBy=multi-user.target')
Ok, now I can access at the 8000 port, but If I try to restart pyload trough the web interface, pyload don't restart. I need to start it by console.
My Idea is that some permits don't works, but is only one idea.
Even more strange is the fact that if I only run pyloadcore or pyloadcore --daemon, pyload start and I can access trough the web interface and I can restart pyload trough the web interface.
Any idea?
J