Home » Questions » Computers [ Ask a new question ]

Kill Infinite loop at Upstart's run level

Kill Infinite loop at Upstart's run level

"One of my applications is at a infinite loop in the runlevel 1 by printing No protocol specified continuously after running startx -- :1.
The run level does not listen to my commands given at the run level.
I can of course give kernel Magic*B, but that would close all my other run levels which I do not want. Magic*K is not working."

Asked by: Guest | Views: 24
Total answers/comments: 1
Guest [Entry]

"A clean way to do this would be to use update-rc.d. You can configure the program to not run at all during runlevel 1:

$update-rc.d script_name stop 1 .

where script_name is the init.d script. So for example, to stop Apache from running in runlevel 1:

$update-rc.d apache2 stop 1 .

If you want to completely disable the specified service:

$update-rc.d -f script_name remove

If you are going to disable a service, you should also stop it from running in all runlevels. Next time a service is upgraded, the init.d scripts may be recreated, essentially re-enabling your service.

To disable it in all runlevels:

$update-rc.d script_name stop 80 0 1 2 3 4 5 6 ."