You are Unregistered, please register to gain Full access.    

Go Back   SiNfuL iPhone > Discussion | Help > General Help

Notices

General Help DO NOT POST DEVICE SPECIFIC, APP RELATED, or JAILBREAK questions in here!
They have their own specific forums.

Reply
Thread Tools

 Create a launch daemon?
Unread 02-05-2012, 11:21 PM   #1
GTRsdk
n00b
 
GTRsdk is offline
Join Date: Feb 2012
Device: iPod Touch 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Other
Location: The aweseme state
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Create a launch daemon?

I'm trying to create a launch daemon so I can have an application normally launched from the command line launch each and every time the device starts.

I have tried just creating a .plist file, moving it to the LaunchDaemons folders, but it hasn't worked yet.

This is on an iPod Touch on iOS 5.0.1 (redsn0w untethered).
  Reply With Quote

 
Unread 02-06-2012, 12:12 AM   #2
slugrail
MODDER-HACKER-PROGRAMMER
 
slugrail is offline
Join Date: Dec 2009
Device: iPhone 4S
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Vodafone
OS: Windows 7
Location: Australia
Posts: 903
Thanks: 133
Thanked 713 Times in 255 Posts
And where is the binary located? -_-
Twitter: @slugrail
IPA Installer for iOS 5+:

Download!

Save-Game Tool:
iOS: 4.2+
PC: Windows & Mac

Download save data and hacks for games right from your iDevice!


Windows 95 on iOS! | Dropbox: direct links + backups | MC3: Hack Assistant | Nova 3 Hack
  Reply With Quote

 
Unread 02-06-2012, 06:12 AM   #3
pianoman763
Proud AMERICAN!
 
pianoman763 is offline
Join Date: Oct 2010
Device: iPhone 4S
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Sprint
OS: Windows 8 x64
Location: United States
Posts: 847
Thanks: 423
Thanked 208 Times in 156 Posts
I don't really know much about how these work, but wouldn't it have to have something somewhere else telling it to launch it when it boots, or do all of the ones in the folder automatically boot?
  Reply With Quote

 
Unread 02-06-2012, 06:59 AM   #4
Kabilach
Resident Satanist
 
Kabilach's Avatar
 
Kabilach is offline
Join Date: May 2011
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Vodafone
OS: Windows 7 x64
Location: Weymouth
Posts: 1,433
Thanks: 273
Thanked 367 Times in 270 Posts
I'm ASSUMING it's like a batch file?

I did a quick google and found this link http://www.ifans.com/forums/showthread.php?t=326838 It's "helpful" but not a tut

this link has an example dunno if that helps https://discussions.apple.com/thread...art=0&tstart=0
Yes, I'm an actual LaVeyan Satanist
which means I have no respect for idiots and wastrels

Satan represents kindness to those who deserve it instead of love wasted on ingrates!
Satan represents responsibility to the responsible!
Stupidity—The top of the list for Satanic Sins.
The Cardinal Sin of Satanism. It's too bad that stupidity isn't painful.
Ignorance is one thing, but our society thrives increasingly on stupidity.
It depends on people going along with whatever they are told.
The media promotes a cultivated stupidity as a posture that is not only acceptable but laudable.
Satanists must learn to see through the tricks and cannot afford to be stupid.

  Reply With Quote

 
Unread 02-06-2012, 08:04 AM   #5
GTRsdk
n00b
 
GTRsdk is offline
Join Date: Feb 2012
Device: iPod Touch 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Other
Location: The aweseme state
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by 64base View Post
And where is the binary located? -_-
I believe it is /usr/bin/supybot (just plain old supybot works when ssh'ed into the device).

---------- EDIT ----------

Hmm... I can't even get it to work if I tell it to run a bash script.

---------- EDIT ----------

Okay so here's my .plist file..
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN">
<plist version="1.0">

<dict>
    <key>Label</key>
    <string>com.gtrsdk.bot</string>

    <key>ProgramArguments</key>
    <array>
        <string>/private/var/root/script.sh</string>
    </array>

    <key>RunAtLoad</key>
    <true/>

  <key>StartInterval</key>
  <integer>1</integer>


</dict>

</plist>
I can't figure out what I did wrong... Maybe I need to specify somewhere to launch this?
Or are there permission problems?
  Reply With Quote

 
Unread 02-06-2012, 08:13 AM   #6
Kabilach
Resident Satanist
 
Kabilach's Avatar
 
Kabilach is offline
Join Date: May 2011
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Vodafone
OS: Windows 7 x64
Location: Weymouth
Posts: 1,433
Thanks: 273
Thanked 367 Times in 270 Posts
I think I read smewhere the permission should be wheel not root
Yes, I'm an actual LaVeyan Satanist
which means I have no respect for idiots and wastrels

Satan represents kindness to those who deserve it instead of love wasted on ingrates!
Satan represents responsibility to the responsible!
Stupidity—The top of the list for Satanic Sins.
The Cardinal Sin of Satanism. It's too bad that stupidity isn't painful.
Ignorance is one thing, but our society thrives increasingly on stupidity.
It depends on people going along with whatever they are told.
The media promotes a cultivated stupidity as a posture that is not only acceptable but laudable.
Satanists must learn to see through the tricks and cannot afford to be stupid.

  Reply With Quote

 
Unread 02-06-2012, 09:25 AM   #7
GTRsdk
n00b
 
GTRsdk is offline
Join Date: Feb 2012
Device: iPod Touch 4
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Other
Location: The aweseme state
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I ran chown root:wheel (which supposedly make root and wheel the owners) on both the script and plist file.

Did I run the right command? I can't get it to work. I have rebooted my device and it still doesn't work. The program hasn't been started.
  Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -7. The time now is 02:12 PM.

Copyright © 2009 ––––•(SiNfulSS)•–––- Shot Caller @ SiNfuL iPhone