summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/lessfs')
-rw-r--r--sys-fs/lessfs/ChangeLog5
-rw-r--r--sys-fs/lessfs/files/lessfs.initd11
2 files changed, 10 insertions, 6 deletions
diff --git a/sys-fs/lessfs/ChangeLog b/sys-fs/lessfs/ChangeLog
index 266082787eee..c26fa385039e 100644
--- a/sys-fs/lessfs/ChangeLog
+++ b/sys-fs/lessfs/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-fs/lessfs
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/ChangeLog,v 1.25 2011/01/16 13:44:23 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/ChangeLog,v 1.26 2011/01/16 14:52:16 hwoarang Exp $
+
+ 16 Jan 2011; Markos Chandras <hwoarang@gentoo.org> files/lessfs.initd:
+ More fixes on init script
16 Jan 2011; Markos Chandras <hwoarang@gentoo.org> +lessfs-1.3.1.ebuild,
+files/lessfs.confd, +files/lessfs.initd,
diff --git a/sys-fs/lessfs/files/lessfs.initd b/sys-fs/lessfs/files/lessfs.initd
index 15b8e3097a0d..b6f7b210fc07 100644
--- a/sys-fs/lessfs/files/lessfs.initd
+++ b/sys-fs/lessfs/files/lessfs.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/files/lessfs.initd,v 1.1 2011/01/16 13:44:23 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lessfs/files/lessfs.initd,v 1.2 2011/01/16 14:52:16 hwoarang Exp $
depend() {
need net
@@ -10,13 +10,14 @@ depend() {
start() {
ebegin "Starting lessfs"
start-stop-daemon --start --exec /usr/bin/lessfs \
- --pidfile /var/run/lessfs.pid --make-pidfile -- ${CONFIG} ${MOUNTPOINT}
+ --pidfile /var/run/lessfs.pid --make-pidfile -- "${CONFIG}" "${MOUNTPOINT}"
eend $?
}
stop() {
- ebegin "Starting lessfs"
- start-stop-daemon --stop --exec /usr/bin/lessfs \
- --pidfile /var/run/lessfs.pid
+ ebegin "Stopping lessfs"
+ umount "${MOUNTPOINT}" >> /dev/null
+ [[ $? -eq 0 ]] && start-stop-daemon --stop --exec /usr/bin/lessfs \
+ --pidfile /var/run/lessfs.pid
eend $?
}