From 52447096f2a01b29d2e443d28696e8120ce00a3d Mon Sep 17 00:00:00 2001 From: meeh Date: Mon, 10 Sep 2012 03:14:09 +0000 Subject: [PATCH] Added a fix for a startup issue in newer versions of launchd. Setting Disabled in configfile will only work on older launchd version. Ref manpage: (-w Overrides the Disabled key and sets it to false. In previous ver- sions, this option would modify the configuration file. Now the state of the Disabled key is stored elsewhere on-disk.) --- history.txt | 6 ++++++ installer/resources/install_i2p_service_osx.command | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/history.txt b/history.txt index dc5540690..cefc79940 100644 --- a/history.txt +++ b/history.txt @@ -1,3 +1,9 @@ +2012-09-10 meeh + * Added fix for startup issues on newer versions of launchd (osx startup scripts) + +2012-09-05 meeh + * Added startup scripts for osx + 2012-09-04 zzz * I2PTunnelServer: Clean shutdown after session exception * OutNetMessage: Speedup after profiling (ticket #707 - thx dg, kytv, zab) diff --git a/installer/resources/install_i2p_service_osx.command b/installer/resources/install_i2p_service_osx.command index 9bfee453c..e8d92b081 100644 --- a/installer/resources/install_i2p_service_osx.command +++ b/installer/resources/install_i2p_service_osx.command @@ -11,7 +11,8 @@ echo -n '| sed "s#COMMAND#`pwd`/i2prouter#" | sed "s#I2PPATH#`pwd`/#" > /Library chmod +x `pwd`/$shfile echo "Please enter your password for sudo privileges to install I2P as a launchd service" sudo ./$shfile -sudo launchctl load -F /Library/LaunchDaemons/net.i2p.router.plist +sudo chown root:wheel /Library/LaunchDaemons/net.i2p.router.plist +sudo launchctl load -wF /Library/LaunchDaemons/net.i2p.router.plist if [ $? == 0 ]; then echo "I2P Router wrapper was successfully installed as a launchd service." else