mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Load and start tor in launchd at end of installation
svn:r6789
This commit is contained in:
parent
cb32336e19
commit
1d02d24afa
@ -82,11 +82,6 @@ if [ ! -e /var/log/tor -o -L /var/log/tor ]; then
|
|||||||
ln -sf $LOGDIR tor
|
ln -sf $LOGDIR tor
|
||||||
fi
|
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
|
if [ -d /Library/StartupItems/Privoxy ]; then
|
||||||
find /Library/StartupItems/Privoxy -print0 | xargs -0 chown root:wheel
|
find /Library/StartupItems/Privoxy -print0 | xargs -0 chown root:wheel
|
||||||
fi
|
fi
|
||||||
@ -123,6 +118,8 @@ if [ $OS = "tiger" ]; then
|
|||||||
if [ -f $PACKAGE_PATH/Contents/Resources/net.freehaven.tor.plist ]; 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
|
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
|
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
|
fi
|
||||||
else
|
else
|
||||||
if [ -d /Library/StartupItems/Tor ]; then
|
if [ -d /Library/StartupItems/Tor ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user