[or-cvs] Load and start tor in launchd at end of installation
phobos at seul.org
phobos at seul.org
Tue Jul 18 04:40:05 UTC 2006
Update of /home/or/cvsroot/tor/contrib/osx
In directory moria:/tmp/cvs-serv17000
Modified Files:
TorPostflight
Log Message:
Load and start tor in launchd at end of installation
Index: TorPostflight
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/osx/TorPostflight,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -p -d -r1.17 -r1.18
--- TorPostflight 17 Jul 2006 04:31:22 -0000 1.17
+++ TorPostflight 18 Jul 2006 04:40:02 -0000 1.18
@@ -82,11 +82,6 @@ if [ ! -e /var/log/tor -o -L /var/log/to
ln -sf $LOGDIR tor
fi
-if [ -d /Library/StartupItems/Tor ]; then
- rm -f /Library/StartupItems/Tor/Tor.loc
- echo "$TARGET" > /Library/StartupItems/Tor/Tor.loc
-fi
-
if [ -d /Library/StartupItems/Privoxy ]; then
find /Library/StartupItems/Privoxy -print0 | xargs -0 chown root:wheel
fi
@@ -123,6 +118,8 @@ if [ $OS = "tiger" ]; then
if [ -f $PACKAGE_PATH/Contents/Resources/net.freehaven.tor.plist ]; then
cp $PACKAGE_PATH/Contents/Resources/net.freehaven.tor.plist /System/Library/LaunchDaemons/net.freehaven.tor.plist
chmod 644 /System/Library/LaunchDaemons/net.freehaven.tor.plist
+ /bin/launchctl load /System/Library/LaunchDaemons/net.freehaven.tor.plist
+ /bin/launchctl start net.freehaven.tor
fi
else
if [ -d /Library/StartupItems/Tor ]; then
More information about the tor-commits
mailing list