From: | "Markos Chandras (hwoarang)" <hwoarang@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-fs/lessfs/files: lessfs.initd |
Date: | Sun, 16 Jan 2011 14:52:26 |
Message-Id: | 20110116145216.D17AA20047@flycatcher.gentoo.org |
1 | hwoarang 11/01/16 14:52:16 |
2 | |
3 | Modified: lessfs.initd |
4 | Log: |
5 | More fixes on init script |
6 | |
7 | (Portage version: 2.2.0_alpha15/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.2 sys-fs/lessfs/files/lessfs.initd |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lessfs/files/lessfs.initd?rev=1.2&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lessfs/files/lessfs.initd?rev=1.2&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/lessfs/files/lessfs.initd?r1=1.1&r2=1.2 |
15 | |
16 | Index: lessfs.initd |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-fs/lessfs/files/lessfs.initd,v |
19 | retrieving revision 1.1 |
20 | retrieving revision 1.2 |
21 | diff -u -r1.1 -r1.2 |
22 | --- lessfs.initd 16 Jan 2011 13:44:23 -0000 1.1 |
23 | +++ lessfs.initd 16 Jan 2011 14:52:16 -0000 1.2 |
24 | @@ -1,7 +1,7 @@ |
25 | #!/sbin/runscript |
26 | # Copyright 1999-2011 Gentoo Foundation |
27 | # Distributed under the terms of the GNU General Public License v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/files/lessfs.initd,v 1.1 2011/01/16 13:44:23 hwoarang Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/files/lessfs.initd,v 1.2 2011/01/16 14:52:16 hwoarang Exp $ |
30 | |
31 | depend() { |
32 | need net |
33 | @@ -10,13 +10,14 @@ |
34 | start() { |
35 | ebegin "Starting lessfs" |
36 | start-stop-daemon --start --exec /usr/bin/lessfs \ |
37 | - --pidfile /var/run/lessfs.pid --make-pidfile -- ${CONFIG} ${MOUNTPOINT} |
38 | + --pidfile /var/run/lessfs.pid --make-pidfile -- "${CONFIG}" "${MOUNTPOINT}" |
39 | eend $? |
40 | } |
41 | |
42 | stop() { |
43 | - ebegin "Starting lessfs" |
44 | - start-stop-daemon --stop --exec /usr/bin/lessfs \ |
45 | - --pidfile /var/run/lessfs.pid |
46 | + ebegin "Stopping lessfs" |
47 | + umount "${MOUNTPOINT}" >> /dev/null |
48 | + [[ $? -eq 0 ]] && start-stop-daemon --stop --exec /usr/bin/lessfs \ |
49 | + --pidfile /var/run/lessfs.pid |
50 | eend $? |
51 | } |