diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2011-01-16 14:52:16 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2011-01-16 14:52:16 +0000 |
commit | 22350cb5783a9caec0e6880240c7b5202595adcc (patch) | |
tree | 4380d09bb8599e26538b14f29397e953965f11ff /sys-fs/lessfs | |
parent | sparc stable (diff) | |
download | gentoo-2-22350cb5783a9caec0e6880240c7b5202595adcc.tar.gz gentoo-2-22350cb5783a9caec0e6880240c7b5202595adcc.tar.bz2 gentoo-2-22350cb5783a9caec0e6880240c7b5202595adcc.zip |
More fixes on init script
(Portage version: 2.2.0_alpha15/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/lessfs')
-rw-r--r-- | sys-fs/lessfs/ChangeLog | 5 | ||||
-rw-r--r-- | sys-fs/lessfs/files/lessfs.initd | 11 |
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 $? } |