plugui not working

Ask questions about Arch Linux ARM. Please search before making a new topic.

plugui not working

Postby hojnikb » Sat Jan 21, 2012 11:36 pm

Today when i updated my plug i've noticed when i rebooted that plugui is broken for some reason.I've started it manually and the web interface didnt work.
Only solution so far is to reinstall it and run it. Then it work, but when i reboot the device again, then plugi stops working no matter how many times i try to start/stop the daemon.

Any idea what that could be ?
+°´°+,¸¸,+°´°~ +°´°+,¸¸,+°´°~I ♥ my DockStar :oops:~°´°+,¸¸,+°´°++°´°+,¸¸,+°´°~
Linux = Be root
Windows = reboot

+°´°+,¸¸,+°´°~DockStar, Marvell CPU @ 1.2Ghz, 128MB RAM, 4GB rootfs + 160GB°´°+,¸¸,+°´°+
hojnikb
 
Posts: 104
Joined: Thu Jul 08, 2010 11:57 am

Re: plugui not working

Postby hojnikb » Sun Jan 22, 2012 12:00 am

Apperently running every time this command
$this->bbcode_second_pass_code('', '/opt/PlugUI/setup.sh')
makes it work again.

Ill try the git version, maybe it works better.
+°´°+,¸¸,+°´°~ +°´°+,¸¸,+°´°~I ♥ my DockStar :oops:~°´°+,¸¸,+°´°++°´°+,¸¸,+°´°~
Linux = Be root
Windows = reboot

+°´°+,¸¸,+°´°~DockStar, Marvell CPU @ 1.2Ghz, 128MB RAM, 4GB rootfs + 160GB°´°+,¸¸,+°´°+
hojnikb
 
Posts: 104
Joined: Thu Jul 08, 2010 11:57 am

Re: plugui not working

Postby hojnikb » Sun Jan 22, 2012 12:11 am

I've just added that command to rc.local.
Not a nice way to do it, but it works for now, until i figure what is wrong with it.
+°´°+,¸¸,+°´°~ +°´°+,¸¸,+°´°~I ♥ my DockStar :oops:~°´°+,¸¸,+°´°++°´°+,¸¸,+°´°~
Linux = Be root
Windows = reboot

+°´°+,¸¸,+°´°~DockStar, Marvell CPU @ 1.2Ghz, 128MB RAM, 4GB rootfs + 160GB°´°+,¸¸,+°´°+
hojnikb
 
Posts: 104
Joined: Thu Jul 08, 2010 11:57 am

Re: plugui not working

Postby Stomps » Sat Dec 08, 2012 10:56 pm

The issue seems to be that after every reboot, all folders in the /run folder are deleted and repopulated with programs that are started during the boot process. This includes the /run/PlugUI folder that is created during the setup.sh script. So the easy solution is to add these lines to your rc.local script:

$this->bbcode_second_pass_code('', '
mkdir -p /var/run/PlugUI > /dev/null 2>&1
/etc/rc.d/plugui start
')

and remove plugui from the daemons list in rc.conf. This works for me.
Stomps
 
Posts: 3
Joined: Fri Sep 09, 2011 1:54 pm


Return to User Questions

Who is online

Users browsing this forum: No registered users and 4 guests