iPhone Shell command to permanently kill respawning apps

NedBookPro

macrumors 6502
Original poster
Feb 13, 2011
334
0
Hi all,

After a couple of days, my phone bogs down and almost grinds to a halt. So much so that answering an incoming call in almost missed because the slider is unresponsive.

Usually a reboot fixes all this and the phone is back to normal, but a few days later it happens again.

I've managed to put an automatic reboot script on the phone (in /System/Library/LaunchDaemons/), and so now the phone will reboot every morning around 3am. Cool.

What I'd like to know is, how do I do a clean reboot.. ie, have all apps like facebook, messenger, etc NOT re-open on reboot.

I noticed that when logged in via ssh that if I kill -9 [Facebook PID] that it respawns. Using launchctl doesn't seem to work either. I figure there must be a way to do this, I've googled it to death with no solution.

I would have thought there's a way to do some kind of "clean boot".


Can anyone help?
 

eyoungren

macrumors Core
Aug 31, 2011
21,187
13,026
ten-zero-eleven-zero-zero by zero-two
Hi all,

After a couple of days, my phone bogs down and almost grinds to a halt. So much so that answering an incoming call in almost missed because the slider is unresponsive.

Usually a reboot fixes all this and the phone is back to normal, but a few days later it happens again.

I've managed to put an automatic reboot script on the phone (in /System/Library/LaunchDaemons/), and so now the phone will reboot every morning around 3am. Cool.

What I'd like to know is, how do I do a clean reboot.. ie, have all apps like facebook, messenger, etc NOT re-open on reboot.

I noticed that when logged in via ssh that if I kill -9 [Facebook PID] that it respawns. Using launchctl doesn't seem to work either. I figure there must be a way to do this, I've googled it to death with no solution.

I would have thought there's a way to do some kind of "clean boot".


Can anyone help?
I can't give you any shell commands, but I can tell you what I do/use.

I reboot my phone every morning, but not through a daemon. I use Activator for that. When things start slowing down I use Kill Background which kills all the backgrounded apps at once. Both are available in Cydia.

As far as repeatedly terminating a process, I don't know.
 

NedBookPro

macrumors 6502
Original poster
Feb 13, 2011
334
0
I use Kill Background which kills all the backgrounded apps at once. Both are available in Cydia.
It would be nice to do this via a shell command. That way I can do it all without having to touch the phone, and let it happen overnight.
 

JPNFRK7

macrumors 6502a
Sep 27, 2012
551
293
California
I guess you could set it to reboot when you connect to a power source in Activator. Could get a little annoying during the day.