diff options
Diffstat (limited to 'net-misc/iodine')
-rw-r--r-- | net-misc/iodine/files/iodined.init | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/net-misc/iodine/files/iodined.init b/net-misc/iodine/files/iodined.init deleted file mode 100644 index d8bb4534faa4..000000000000 --- a/net-misc/iodine/files/iodined.init +++ /dev/null @@ -1,62 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -PID_FILE="/var/run/iodined.pid" - -depend() { - need net -} - -start() { - ebegin "Starting iodined" - ARGS="" - if [ "$IODINED_USER" ]; then - ARGS="$ARGS -u $IODINED_USER" - fi - if [ "$IODINED_CHROOT" ]; then - ARGS="$ARGS -t $IODINED_CHROOT" - fi - if [ "$IODINED_MTU" ]; then - ARGS="$ARGS -m $IODINED_MTU" - fi - if [ "$IODINED_LISTENPORT" ]; then - ARGS="$ARGS -p $IODINED_LISTENPORT" - fi - if [ "$IODINED_EXTERN_IP" ]; then - ARGS="$ARGS -n $IODINED_EXTERN_IP" - fi - if [ "$IODINED_LOCAL_DNS_PORT" ]; then - ARGS="$ARGS -b $IODINED_LOCAL_DNS_PORT" - fi - if [ "$IODINED_LISTENIP" ]; then - ARGS="$ARGS -l $IODINED_LISTENIP" - fi - if [ "$IODINED_PASSWD" ]; then - ARGS="$ARGS -P $IODINED_PASSWD" - else - eerror "Please set a password (IODINED_PASSWD) in /etc/conf.d/iodined!" - return 1 - fi - if [ "$IODINED_IP" ]; then - ARGS="$ARGS $IODINED_IP" - else - eerror "Please set an IP (IODINED_IP) in /etc/conf.d/iodined!" - return 1 - fi - if [ "$IODINED_DOMAIN" ]; then - ARGS="$ARGS $IODINED_DOMAIN" - else - eerror "Please set a domain (IODINED_DOMAIN) in /etc/conf.d/iodined!" - return 1 - fi - start-stop-daemon --start --exec /usr/bin/iodined --pidfile $PID_FILE -- -F $PID_FILE $ARGS - eend $? -} - -stop() { - ebegin "Stopping iodined" - start-stop-daemon --stop --exec /usr/bin/iodined --pidfile $PID_FILE - eend $? -} |