Mercurial > illumos > onarm
comparison usr/src/cmd/initpkg/init.d/init.snmpdx @ 0:c9caec207d52 b86
Initial porting based on b86
author | Koji Uno <koji.uno@sun.com> |
---|---|
date | Tue, 02 Jun 2009 18:56:50 +0900 |
parents | |
children | 1a15d5aaf794 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c9caec207d52 |
---|---|
1 #!/sbin/sh | |
2 # | |
3 # CDDL HEADER START | |
4 # | |
5 # The contents of this file are subject to the terms of the | |
6 # Common Development and Distribution License (the "License"). | |
7 # You may not use this file except in compliance with the License. | |
8 # | |
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE | |
10 # or http://www.opensolaris.org/os/licensing. | |
11 # See the License for the specific language governing permissions | |
12 # and limitations under the License. | |
13 # | |
14 # When distributing Covered Code, include this CDDL HEADER in each | |
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE. | |
16 # If applicable, add the following below this CDDL HEADER, with the | |
17 # fields enclosed by brackets "[]" replaced with your own identifying | |
18 # information: Portions Copyright [yyyy] [name of copyright owner] | |
19 # | |
20 # CDDL HEADER END | |
21 # | |
22 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. | |
23 # Use is subject to license terms. | |
24 # | |
25 # ident "@(#)init.snmpdx 1.16 06/06/02 SMI" | |
26 | |
27 case "$1" in | |
28 'start') | |
29 svcadm enable -t svc:/application/management/snmpdx:default | |
30 ;; | |
31 | |
32 'stop') | |
33 svcadm disable -t svc:/application/management/snmpdx:default | |
34 ;; | |
35 | |
36 *) | |
37 echo "Usage: $0 { start | stop }" | |
38 exit 1 | |
39 ;; | |
40 esac | |
41 exit 0 |