Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Autostart / launchdis a discussion within the
File Modsforums, a part of the
hi there, I'm currently facing a problem with my iPhone I just can't solve myself .... It's actually pretty simple: I wanted Insomnia to autostart when my iPhone boots, so...
07-30-2008, 06:24 PM #1Autostart / launchd
I'm currently facing a problem with my iPhone I just can't solve myself ....
It's actually pretty simple: I wanted Insomnia to autostart when my iPhone boots, so I don't have to manually switch it on (which I forget most times ). So I read it up and found out that on Mac OSX "launchd" is responsible for autostarting programs.
So what I did:
I put a file called com.imalc.insomnia.plist in /System/Library/LaunchDaemons/. The content of the file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
and then I executed
launchctl load /System/Library/LaunchDaemons/com.imalc.insomnia.plist
which seems to have worked, because when I execute it again it says "already loaded".
Problem: It just doesn't work. Insomnia does not get executed at startup.
Any ideas why or how to do this?
Last edited by BlackWolf; 07-31-2008 at 05:16 AM. Reason: Automerged Doublepost
The Following User Says Thank You to BlackWolf For This Useful Post:
07-30-2008, 08:17 PM #2
thanks! I haven't needed to know this (YET)... but it's good to know.http://jpassoc.com/x -- with free itunes under the puppy!
If I help you out, please press ★THANKS!
3g QuickPWN'ed with 2.1
07-31-2008, 05:17 AM #3
well ... seems I was wrong. I worked once yesterday but doesn't work anymore now (or I imagined it yesterday, I have no idea).
this is really driving me nuts ... my .plist file seems to work perfectly and when I type
launchctl start com.imalc.insomnia
insomnia starts fine. It just doesn't autostart when the iphone boots and I have no idea why.
So I'm still open to suggestions and stuff ^^ I really want this to work
Last edited by BlackWolf; 07-31-2008 at 05:47 AM.
08-16-2008, 10:07 AM #4
Did you get it to work?
I need the same as you. :-)
08-16-2008, 10:44 AM #5
not really. I got the wiki2touch server to autostart which worked fine, so I guess the problem is that insomnia does not qualify as a "daemon" and therefore cannot be autostarted (wiki2touch server was a daemon and autostarted fine). But I didn't really find any solution on how to autostart normal apps ... still hoping someone will help me, because I would really like to kick insomnia from my homescreen and just have it run in the background all the time.
11-09-2008, 02:50 AM #6
Any resolution on this? I am trying to do the same with NemusSyncCheck out Media Database for the iPhone!
07-09-2009, 10:39 AM #7
resolved? I have a basic mobileterminal.app command that I want to add to the startup of the iphone, does anyone know if I have to do this through the terminal or can it be added like "do shell script" to this file?
Please see my post "Control Your iPhone from Anywhere via SSH/VNC", it should change everything you think about 3G network firewalls:
05-31-2010, 12:22 PM #8auto launch apps
i know this thread is old.
but it seems to me that there is still no well documented way to have your own app auto start when the ipod is launched.
was i personally would like to have is a way to have the ipod noticed when being plugged in and then start an app.
but it seems there is no way around the slide/tap to unlock screen. or is there?
but once someone does slider to unlock it would be great to have an app start right away.