siddarajudh
Posts: 11
Joined: Wed Feb 05, 2014 9:03 am

Problem with shutdown and reboot

Wed Apr 09, 2014 3:29 pm

Hi friends...,

I searched on net for running startx during startup process...

I found a blog somewhere(i forget where i found it) and the process somewhat follows like this

Created a shell script sid.sh in /etc/init.d/ folder
The content of the script is
#!/bin/sh
sudo -u pi startx

and i gave permission to execute with chmod

after that i did something like this..
sudo update-rc sid.sh defaults 100

After this i got some warning message and start up of startx is going well..

thing is i cannot shutdown with the shortcut that is given on desktop...
If i double click that shortcut, as usual it pops a window asking for shutdown.. even after selecting that it is not going to shutdown.

i tried sudo shutdown -h now from terminal again it is same it is not going to shut down..

but for reboot at the second time when i type sudo reboot it does....

Any help how can i solve this...?
I think its with update-rc what i did above.... How can i rebuild that sequence....

Return to “Troubleshooting”