Use of itoggle in Service Management
When we install more software and services on the iPhone, the performance of the iPhone is constantly facing a rigorous test. Although the iPhone is great, it is still not omnipotent, limited by hardware specifications, effective management becomes a very important task for the iPhone to achieve optimal performance with limited system resources and memory.
In the past, we had the services tool that allowed us to easily start and close various services, such as telephone functions, flight modes, GPRS (edge) internet access, ssh services, Wi-Fi wireless networks, and Bluetooth, but as we become increasingly diverse in iPhone applications, services's preset services seem to be unable to meet our needs, at this time, the birth of itoggle gave us a hope.
Itoggle is a tool similar to services, but it provides elastic and customizable design, no matter what kind of software or service you have installed, with open settings, you can add or modify the Enable and disable settings for each service. For example, today I have set up a web page server on the iPhone, after I complete the installation and setup, this service will be automatically enabled and resident in the iPhone System for continuous operation, but the iPhone web server does not need to operate in full 24 hours, he only needs to enable it when I want to use it. Although you can enable and disable commands in terminal mode, however, the following commands do not have a single button to facilitate and speed up. In this case, the custom functions of itoggle can be fully utilized.
Itoggle Official Website
Itoggle Installation Method description:
1. download the latest itoggle compressed file from the official website.
2. decompress the downloaded file (Toggle. app) Uploaded to the iPhone/ApplicationsDirectory.
3. ModifyToggle. appDirectoryToggleSet file permissions0755.
4. Shut down the iPhone and restart it.
5. Complete.
When you go back to the iPhone's main screen after the boot, you will see a small toggle icon, which indicates that you have successfully installed it.
Now let's take a look. The services provided by itoggle are the same as those provided by services, such as phones, edges, Bluetooth, wireless networks, auto-lock, and SSH, in addition, two projects, socket server and tinyproxy, are provided.
Now, how do I customize the exclusive service startup and shutdown functions?
1. Edit on PCToggle. appFolderDaemons. plistFile.
Code:
<? 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">
<Plist version = "1.0">
<Dict>
<Key> daemons </key>
<Array>
<Dict>
<Key> label </key>
<String> SSH </string>
<Key> processname </key>
<String> sshd </string>
<Key> processpath </key>
<String>/usr/sbin </string>
<Key> icon </key>
<String> SSH </string>
</Dict>
<Dict>
<Key> label </key>
<String> SOCKS server </string>
<Key> processname </key>
<String> srelay </string>
<Key> processpath </key>
<String>/usr/bin </string>
<Key> icon </key>
<String> socks </string>
</Dict>
<Dict>
<Key> label </key>
<String> tinyproxy </string>
<Key> processname </key>
<String> tinyproxy </string>
<Key> processpath </key>
<String>/usr/bin </string>
<Key> icon </key>
<String> tproxy </string>
</Dict>
</Array>
</Dict>
</Plist>
Common Custom projects, such as SSH, socket server, and tinyproxy, are listed here. Now we want to cancel the projects we have not used and add an apache service, you can copy and modify one of them, or add a new one.
Here we keep SSH and add related Apache settings.
Code:
<? 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">
<Plist version = "1.0">
<Dict>
<Key> daemons </key>
<Array>
<Dict>
<Key> label </key>
<String> SSH </string>
<Key> processname </key>
<String> sshd </string>
<Key> processpath </key>
<String>/usr/sbin </string>
<Key> icon </key>
<String> SSH </string>
</Dict>
<Dict>
<Key> label </key>
<String> apacheserver </string>
<Key> processname </key>
<String> httpd </string>
<Key> processpath </key>
<String>/usr/libexec </string>
<Key> icon </key>
<String> Web </string>
</Dict>
</Array>
</Dict>
</Plist>
The blue text is the property name, and the red text is the data you set. The description is as follows:
ApacheserverService name displayed (Chinese)
ProcessnameThe program name of the service (which can be known using the sysinfo tool)
ProcesspathService Usage path (also using sysinfo)
IconThe image name displayed (the extension name is .png, and a web.png file is created here)
2. Upload the modifiedDaemons. plistAnd Related Files (Web.png).
3. Enter itoggle again.
Is a customizable service tool very convenient! In addition to making your iPhone more stable in use, using itoggle helps you save a lot of valuable power without unnecessary resident services.
Service Management-ulctl (also called launchctl or launchctl GUI)
Of course, some services still need other tools to enable and disable the ulctl, also known as launchctl or launchctl GUI.
Install
Method 1: You can download an app file from its official website and upload the file to the iPhone/ApplicationsDirectory. ModifyToggle. appDirectoryToggleSet file permissions0755. After the iPhone is shut down, it can be used again.
Method 2: Find the launchctl GUI in the ibus System Tool and install it.
Some resident services are automatically restarted after they are disabled, because the service uses launchctl to load to the system service, you must use the launchctl unload-W command or install the ulctl tool to uninstall this service. For the Apache httpd service, the command method requires launchctl unload-W/system/library/launchdaemons/org. apache. httpd. plist. If it is too complicated, install ulctl to use it.
On the Main Screen of ulctl, find the system service we want to disable.
You can select unload, unload-W, and stop commands. Here we select unload-W directly.
Finally, the commands () to be executed by ulctl will be listed. You can also process these commands in the iPhone terminal mode or using putty.
Well, the above is the iPhone service tool usage introduction. Using these two tools can help you get twice the result with half the effort, because they are still useful for you to explore.