Permalink
Browse files

updating tinc and adding startup scripts

  • Loading branch information...
Jonathan Hoyt Jonathan Hoyt
Jonathan Hoyt authored and Jonathan Hoyt committed Mar 5, 2010
1 parent fff5fc0 commit e4fa1f0b1c9cfabf799cac654926e8cde3770013
Showing with 101 additions and 343 deletions.
  1. +3 −1 README.textile
  2. +33 −56 init_scripts/god
  3. +31 −286 init_scripts/mongod
  4. +34 −0 init_scripts/tinc
  5. BIN src/tinc-1.0.12.tar.gz
View
@@ -7,7 +7,9 @@ Here are the commands you need to run on a bare metal 64-bit Debian 5.04 install
bc. During the Debian install call the new user __jukeman__
bc. Login as root
-apt-get update && apt-get upgrade && apt-get install sudo git-core openssh-server && exit
+apt-get update && apt-get upgrade && apt-get install sudo git-core openssh-server
+nano /etc/sudoers # and add a line for the jukeman user, jukeman ALL=(ALL) ALL
+exit
bc. Login as jukeman user
git clone git://github.com/jonmagic/jukeman_installer.git && cd jukeman_installer && sh install
View
@@ -1,59 +1,36 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides: god
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: God
-### END INIT INFO
-
-NAME=god
-DESC=god
-
-set -e
-
-# Make sure the binary and the config file are present before proceeding
-test -x /usr/bin/god || exit 0
-
-# Create this file and put in a variable called GOD_CONFIG, pointing to
-# your God configuration file
-test -f /etc/god.conf && . /etc/god.conf
-[ $GOD_CONFIG ] || exit 0
-
-. /lib/lsb/init-functions
-
+#!/bin/bash
+#
+# God
+#
+# chkconfig: - 85 15
+# description: start, stop, restart God
+#
+
RETVAL=0
-
+
case "$1" in
- start)
- echo -n "Starting $DESC: "
- /usr/bin/god -c $GOD_CONFIG -P /var/run/god.pid -l /var/log/god.log
- RETVAL=$?
- echo "$NAME."
- ;;
- stop)
- echo -n "Stopping $DESC: "
- kill `cat /var/run/god.pid`
- RETVAL=$?
- echo "$NAME."
- ;;
- restart)
- echo -n "Restarting $DESC: "
- kill `cat /var/run/god.pid`
- /usr/bin/god -c $GOD_CONFIG -P /var/run/god.pid -l /var/log/god.log
- RETVAL=$?
- echo "$NAME."
- ;;
- status)
- /usr/bin/god status
- RETVAL=$?
- ;;
- *)
- echo "Usage: god {start|stop|restart|status}"
- exit 1
- ;;
-esac
-
+ start)
+ /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
+ /usr/local/bin/god load /etc/god.conf
+ RETVAL=$?
+ ;;
+ stop)
+ kill `cat /var/run/god.pid`
+ RETVAL=$?
+ ;;
+ restart)
+ kill `cat /var/run/god.pid`
+ /usr/local/bin/god -P /var/run/god.pid -l /var/log/god.log
+ /usr/local/bin/god load /etc/god.conf
+ RETVAL=$?
+ ;;
+ status)
+ RETVAL=$?
+ ;;
+ *)
+ echo "Usage: god {start|stop|restart|status}"
+ exit 1
+ ;;
+esac
+
exit $RETVAL
Oops, something went wrong.

0 comments on commit e4fa1f0

Please sign in to comment.