[launchd-changes] [22987] trunk/launchd/src/StartupItems

source_changes at macosforge.org source_changes at macosforge.org
Fri Dec 15 14:10:33 PST 2006


Revision: 22987
          http://trac.macosforge.org/projects/launchd/changeset/22987
Author:   zarzycki at apple.com
Date:     2006-12-15 14:10:33 -0800 (Fri, 15 Dec 2006)

Log Message:
-----------
The remote_cmds project now installs this.

Removed Paths:
-------------
    trunk/launchd/src/StartupItems/NIS
    trunk/launchd/src/StartupItems/NIS.plist

Deleted: trunk/launchd/src/StartupItems/NIS
===================================================================
--- trunk/launchd/src/StartupItems/NIS	2006-12-15 21:13:18 UTC (rev 22986)
+++ trunk/launchd/src/StartupItems/NIS	2006-12-15 22:10:33 UTC (rev 22987)
@@ -1,79 +0,0 @@
-#!/bin/sh
-
-##
-# Network Information Service
-##
-
-. /etc/rc.common
-
-
-Startyppasswdd()
-{
-    # rpc.yppasswdd is run on NIS masters
-    if [ -f "${VARYP}/${NISDOMAIN}/ypservers.db" ]; then
-        NISMASTER=$(makedbm -U "${VARYP}/${NISDOMAIN}/ypservers" | sed -n '/YP_MASTER_NAME/p' | awk '{print $2}')
-        if [ "$NISMASTER" = "$(hostname)" ]; then
-            rpc.yppasswdd
-        fi
-    fi
-}
-
-StartService ()
-{
-    ##
-    # Network Information Service.
-    ##
-    CheckForNetwork
-    if [ -f /var/run/NIS.StartupItem -o "${NETWORKUP}" = "-NO-" ]; then exit; fi
-    touch /var/run/NIS.StartupItem
-
-    if [ "${NISDOMAIN:=-NO-}" != "-NO-" ]; then
-
-        VARYP=/var/yp
-
-        echo "Starting Network Information Service"
-
-        echo "Setting NIS domainname to ${NISDOMAIN}"
-        domainname "${NISDOMAIN}"
-
-        # ypserv is run on NIS servers - machines with an ${VARYP}/${NISDOMAIN} dir
-        if [ -d "${VARYP}/${NISDOMAIN}" ]; then
-            if ! pid=$(GetPID ypserv); then
-                ypserv
-            fi
-        fi
-
-        Startyppasswdd
-
-        # ypbind is run on all NIS clients
-        ypbind
-    fi
-}
-
-StopService ()
-{
-    echo "Stopping Network Information Service"
-    killall -TERM ypbind > /dev/null 2>&1
-    killall -TERM rpc.yppasswdd > /dev/null 2>&1
-
-    if pid=$(GetPID ypserv); then
-        kill -TERM "${pid}"
-    fi
-}
-
-RestartService ()
-{
-    echo "Restarting Network Information Service"
-    killall -TERM ypbind > /dev/null 2>&1
-    killall -TERM rpc.yppasswdd > /dev/null 2>&1
-
-    if pid=$(GetPID ypserv); then
-        kill -HUP "${pid}"
-        Startyppasswdd
-        ypbind
-    else
-        StartService
-    fi
-}
-
-RunService "$1"

Deleted: trunk/launchd/src/StartupItems/NIS.plist
===================================================================
--- trunk/launchd/src/StartupItems/NIS.plist	2006-12-15 21:13:18 UTC (rev 22986)
+++ trunk/launchd/src/StartupItems/NIS.plist	2006-12-15 22:10:33 UTC (rev 22987)
@@ -1,4 +0,0 @@
-{
-  Description     = "Network Information Service";
-  Provides        = ("NIS");
-}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/launchd-changes/attachments/20061215/290d7379/attachment.html


More information about the launchd-changes mailing list