From: | "Naohiro Aota (naota)" <naota@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-freebsd/freebsd-cddl/files: zfs.initd |
Date: | Sun, 27 May 2012 06:23:42 |
Message-Id: | 20120527062308.1327D2004B@flycatcher.gentoo.org |
1 | naota 12/05/27 06:23:08 |
2 | |
3 | Added: zfs.initd |
4 | Log: |
5 | Add zfs initd script. #415129 |
6 | |
7 | (Portage version: 2.2.0_alpha100/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-freebsd/freebsd-cddl/files/zfs.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-cddl/files/zfs.initd?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-cddl/files/zfs.initd?rev=1.1&content-type=text/plain |
14 | |
15 | Index: zfs.initd |
16 | =================================================================== |
17 | #!/sbin/runscript |
18 | # Copyright 1999-2012 Gentoo Foundation |
19 | # Distributed under the terms of the GNU General Public License v2 |
20 | # $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/files/zfs.initd,v 1.1 2012/05/27 06:23:07 naota Exp $ |
21 | |
22 | depend() { |
23 | need hostid |
24 | before fsck |
25 | } |
26 | |
27 | start() { |
28 | einfo "Starting zfs ..." |
29 | zfs mount -a |
30 | zfs share -a |
31 | if [ ! -r /etc/zfs/exports ]; then |
32 | touch /etc/zfs/exports |
33 | fi |
34 | } |
35 | |
36 | stop() { |
37 | einfo "Stopping zfs ..." |
38 | zfs unshare -a |
39 | zfs unmount -a |
40 | } |