Pyload service

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Pyload service

Postby Chryses » Mon Apr 07, 2014 10:04 pm

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
Last edited by Chryses on Tue Apr 08, 2014 6:30 am, edited 1 time in total.
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Pyload service

Postby moonman » Mon Apr 07, 2014 11:18 pm

Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Pyload service

Postby Chryses » Tue Apr 08, 2014 10:40 am

yep, but I miss the "new" service code, so I tried whitout the --daemon mode and works!
Now remain only the sickbeard problem, that is the same, don't restart via the web
$this->bbcode_second_pass_code('', '[Unit]
Description=SickBeard Daemon
#After=network.target
After=hctosys.service network.target

[Service]
User=muletto
ExecStart=/usr/bin/env nice -n 19 python2 /home/muletto/.sickbeard/SickBeard.py --quiet --config /home/muletto/.sickbeard/config.ini --datadir /home/muletto/.sickbeard

[Install]
WantedBy=multi-user.target
')

Do you think that if I change the service I can resolve the "problem"?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 4 guests