Added command scripts for osx to install i2p as a daemon in launchd.

.command extension make it possible to double click on it like bat files
in windows. Daemon is runned as the user who executes the command file.
This commit is contained in:
meeh
2012-09-05 21:36:24 +00:00
parent 9fd2f1e6a7
commit 5056706742
6 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# 2012, The I2P Project
# http://www.i2p2.de/
# This code is public domain.
# Author: Meeh
echo "Please enter your password for sudo privileges to uninstall I2P from launchd"
sudo launchctl unload -w /Library/LaunchDaemons/net.i2p.router.plist
if [ $? == 0 ]; then
sudo rm -f /Library/LaunchDaemons/net.i2p.router.plist
echo "I2P Router wrapper was successfully uninstalled from launchd."
else
echo "I2P Router wrapper was not uninstalled from launchd."
fi