yellow
12-27-2005, 09:43 PM
Generally a Startup Item in /Library/StartupItems/ has a script that is run at start up. All you have to do is find the script and run it in the Terminal. For example, Timbuktu has a startup item..
yellow% ls -laF /Library/StartupItems/TimbuktuStartup/
total 16
drwxr-xr-x 4 root wheel 136 Mar 25 2005 ./
drwxr-xr-x 6 root wheel 204 Oct 13 13:07 ../
-rw-r--r-- 1 root wheel 638 Mar 11 2003 StartupParameters.plist
-rwxr-xr-x 1 root wheel 430 Mar 25 2005 TimbuktuStartup*
The script is the executable one, TimbuktuStartup. Looking at it:
yellow% more TimbuktuStartup
#!/bin/sh
##
# Start Timbuktu Host Relauncher
##
# WARNING: Be careful to preserve Unix line endings in this file.
#
. /etc/rc.common
ConsoleMessage "Starting Timbuktu Host"
'/Applications/Timbuktu Pro/Timbuktu Pro.app/Contents/SharedSupport/Host Relauncher' '/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp' '/Applications/Timbuktu Pro/Timbuktu Pro.app/Contents/SharedSupport/Timbuktu Extension'
It's just a shell script. So to invoke it, all I have to do is (if I am in the directory that the shell script is in):
yellow% sudo ./TimbuktuStartup
Password:
Starting Timbuktu Host
Enter my admin password, and it restarts.
yellow% ls -laF /Library/StartupItems/TimbuktuStartup/
total 16
drwxr-xr-x 4 root wheel 136 Mar 25 2005 ./
drwxr-xr-x 6 root wheel 204 Oct 13 13:07 ../
-rw-r--r-- 1 root wheel 638 Mar 11 2003 StartupParameters.plist
-rwxr-xr-x 1 root wheel 430 Mar 25 2005 TimbuktuStartup*
The script is the executable one, TimbuktuStartup. Looking at it:
yellow% more TimbuktuStartup
#!/bin/sh
##
# Start Timbuktu Host Relauncher
##
# WARNING: Be careful to preserve Unix line endings in this file.
#
. /etc/rc.common
ConsoleMessage "Starting Timbuktu Host"
'/Applications/Timbuktu Pro/Timbuktu Pro.app/Contents/SharedSupport/Host Relauncher' '/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp' '/Applications/Timbuktu Pro/Timbuktu Pro.app/Contents/SharedSupport/Timbuktu Extension'
It's just a shell script. So to invoke it, all I have to do is (if I am in the directory that the shell script is in):
yellow% sudo ./TimbuktuStartup
Password:
Starting Timbuktu Host
Enter my admin password, and it restarts.
