diff options
author | Alexander Eremin <a.eremin@nexenta.com> | 2015-04-27 12:06:05 -0700 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2015-04-28 14:12:45 -0400 |
commit | 4b92079ba1c38eb015d4df99305947dbeccbb80d (patch) | |
tree | a5421c37c87cc723602745a4a1e403f45b2270fb /usr/src/cmd/initpkg | |
parent | 8622ec4569457733001d4982ef7f5b44427069be (diff) | |
download | illumos-joyent-4b92079ba1c38eb015d4df99305947dbeccbb80d.tar.gz |
5861 clean up obsolete init scripts
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/initpkg')
-rw-r--r-- | usr/src/cmd/initpkg/init.d/Makefile | 8 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/devlinks | 38 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/drvconfig | 36 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/ldap.client | 50 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/nfs.server | 45 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/nscd | 48 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/sendmail | 53 | ||||
-rw-r--r-- | usr/src/cmd/initpkg/init.d/slpd | 47 |
8 files changed, 1 insertions, 324 deletions
diff --git a/usr/src/cmd/initpkg/init.d/Makefile b/usr/src/cmd/initpkg/init.d/Makefile index 6eab9ec100..b8ef85b083 100644 --- a/usr/src/cmd/initpkg/init.d/Makefile +++ b/usr/src/cmd/initpkg/init.d/Makefile @@ -22,6 +22,7 @@ # # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2014 Garrett D'Amore <garrett@damore.org> +# Copyright 2015 Nexenta Systems, Inc. All rights reserved. # include ../../Makefile.cmd @@ -32,13 +33,6 @@ i386_PROG= PROG= \ README \ cachefs.daemon \ - devlinks \ - drvconfig \ - ldap.client \ - nfs.server \ - nscd \ - sendmail \ - slpd \ sysetup \ uucp \ $($(MACH)_PROG) diff --git a/usr/src/cmd/initpkg/init.d/devlinks b/usr/src/cmd/initpkg/init.d/devlinks deleted file mode 100644 index 4ec27a9be0..0000000000 --- a/usr/src/cmd/initpkg/init.d/devlinks +++ /dev/null @@ -1,38 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. -# All rights reserved. -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# - -if [ -n "$_INIT_RECONFIG" ]; then - echo 'Configuring the /dev directory' - - /usr/sbin/devlinks - /usr/sbin/disks - /usr/sbin/ports - /usr/sbin/tapes - /usr/sbin/audlinks -fi diff --git a/usr/src/cmd/initpkg/init.d/drvconfig b/usr/src/cmd/initpkg/init.d/drvconfig deleted file mode 100644 index 0f41b24c31..0000000000 --- a/usr/src/cmd/initpkg/init.d/drvconfig +++ /dev/null @@ -1,36 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T. -# All rights reserved. -# -# -# Copyright (c) 1991-1997 by Sun Microsystems, Inc. -# All rights reserved. -# -#ident "%Z%%M% %I% %E% SMI" - -if [ -n "$_INIT_RECONFIG" ]; then - echo 'Configuring the /devices directory' - /usr/sbin/drvconfig -fi diff --git a/usr/src/cmd/initpkg/init.d/ldap.client b/usr/src/cmd/initpkg/init.d/ldap.client deleted file mode 100644 index 665e3b363f..0000000000 --- a/usr/src/cmd/initpkg/init.d/ldap.client +++ /dev/null @@ -1,50 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#ident "%Z%%M% %I% %E% SMI" - -# This service is managed by smf(5). Thus, this script provides -# compatibility with previously documented init.d script behaviour. - -FMRI=network/ldap/client:default - -case "$1" in -'start') - [ -f /var/ldap/ldap_client_file ] && \ - [ -f /usr/lib/ldap/ldap_cachemgr ] || exit 0 - - /usr/sbin/svcadm enable -t $FMRI - ;; - -'stop') - /usr/sbin/svcadm disable -t $FMRI - ;; - -*) - echo "Usage: $0 { start | stop }" - exit 1 - ;; -esac diff --git a/usr/src/cmd/initpkg/init.d/nfs.server b/usr/src/cmd/initpkg/init.d/nfs.server deleted file mode 100644 index 4f60fc8f4b..0000000000 --- a/usr/src/cmd/initpkg/init.d/nfs.server +++ /dev/null @@ -1,45 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#ident "%Z%%M% %I% %E% SMI" - -# This service is managed by smf(5). Thus, this script provides -# compatibility with previously documented init.d script behaviour. - -case "$1" in -'start') - svcadm enable -t network/nfs/server - ;; - -'stop') - svcadm disable -t network/nfs/server - ;; - -*) - echo "Usage: $0 { start | stop }" - exit 1 - ;; -esac diff --git a/usr/src/cmd/initpkg/init.d/nscd b/usr/src/cmd/initpkg/init.d/nscd deleted file mode 100644 index de78fe8812..0000000000 --- a/usr/src/cmd/initpkg/init.d/nscd +++ /dev/null @@ -1,48 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#ident "%Z%%M% %I% %E% SMI" - -# This service is managed by smf(5). Thus, this script provides -# compatibility with previously documented init.d script behaviour. - -FMRI=system/name-service-cache:default - -case "$1" in -'start') - [ -f /etc/nscd.conf ] && [ -f /usr/sbin/nscd ] || exit 0 - /usr/sbin/svcadm enable -t $FMRI - ;; - -'stop') - [ -f /usr/sbin/nscd ] && /usr/sbin/svcadm disable -t $FMRI - ;; - -*) - echo "Usage: $0 { start | stop }" - exit 1 - ;; -esac diff --git a/usr/src/cmd/initpkg/init.d/sendmail b/usr/src/cmd/initpkg/init.d/sendmail deleted file mode 100644 index 896e9f9ea1..0000000000 --- a/usr/src/cmd/initpkg/init.d/sendmail +++ /dev/null @@ -1,53 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License (the "License"). -# You may not use this file except in compliance with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# - -# This service is managed by smf(5). Thus, this script provides -# compatibility with previously documented init.d script behaviour. - -case "$1" in -'restart') - # The previous init.d/sendmail restart behaviour matches - # the smf(5) 'refresh' semantics. - - svcadm refresh network/smtp:sendmail - svcadm refresh network/sendmail-client:default - ;; - -'start') - svcadm enable -t network/smtp:sendmail - svcadm enable -t network/sendmail-client:default - ;; - -'stop') - svcadm disable -t network/smtp:sendmail - svcadm disable -t network/sendmail-client:default - ;; - -*) - echo "Usage: $0 { start | stop | restart }" - exit 1 - ;; -esac diff --git a/usr/src/cmd/initpkg/init.d/slpd b/usr/src/cmd/initpkg/init.d/slpd deleted file mode 100644 index d5283fa7f9..0000000000 --- a/usr/src/cmd/initpkg/init.d/slpd +++ /dev/null @@ -1,47 +0,0 @@ -#!/sbin/sh -# -# CDDL HEADER START -# -# The contents of this file are subject to the terms of the -# Common Development and Distribution License, Version 1.0 only -# (the "License"). You may not use this file except in compliance -# with the License. -# -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE -# or http://www.opensolaris.org/os/licensing. -# See the License for the specific language governing permissions -# and limitations under the License. -# -# When distributing Covered Code, include this CDDL HEADER in each -# file and include the License file at usr/src/OPENSOLARIS.LICENSE. -# If applicable, add the following below this CDDL HEADER, with the -# fields enclosed by brackets "[]" replaced with your own identifying -# information: Portions Copyright [yyyy] [name of copyright owner] -# -# CDDL HEADER END -# -# -# Copyright 2004 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -#ident "%Z%%M% %I% %E% SMI" - -# This service is managed by smf(5). Thus, this script provides -# compatibility with previously documented init.d script behaviour. - -FMRI=network/slp:default - -case "$1" in -'start') - /usr/sbin/svcadm enable -t $FMRI - ;; - -'stop') - /usr/sbin/svcadm disable -t $FMRI - ;; - -*) - echo "Usage: $0 { start | stop }" - exit 1 - ;; -esac |