aboutsummaryrefslogtreecommitdiff
path: root/contrib/osx
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2006-07-18 04:40:02 +0000
committerAndrew Lewman <andrew@torproject.org>2006-07-18 04:40:02 +0000
commit1d02d24afa8cd6242d6a8fad87e9374c941829f9 (patch)
tree860c618ff92edc8cd2a822dd3ec16641707029eb /contrib/osx
parentcb32336e19dcf98946e2e8f95ab965f1aad1af72 (diff)
downloadtor-1d02d24afa8cd6242d6a8fad87e9374c941829f9.tar
tor-1d02d24afa8cd6242d6a8fad87e9374c941829f9.tar.gz
Load and start tor in launchd at end of installation
svn:r6789
Diffstat (limited to 'contrib/osx')
-rw-r--r--contrib/osx/TorPostflight7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight
index 26e0de001..1d379362a 100644
--- a/contrib/osx/TorPostflight
+++ b/contrib/osx/TorPostflight
@@ -82,11 +82,6 @@ if [ ! -e /var/log/tor -o -L /var/log/tor ]; then
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