I am developing a project in which a webservice published in a TomCat server (axis2 plugin) is used, and, when it is consumed should reboot the RPi. Here the code of the command used for rebooting:
Code: Select all
java.lang.Runtime.getRuntime().exec("sudo reboot");Code: Select all
pi ALL=(ALL) NOPASSWD:ALLThe same thing when I try to modify "interfaces", it fails to change network settings.
I have tried it in Ubuntu and it work fine, so I think it must be a problem refered to the RPi's configuration.
Please, anyone could help me?
Many thanks.