diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-06-28 13:41:18 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-06-28 13:41:18 -0400 |
commit | ac7763cfd629bdf3f90ed5c38f4f2cfe38db14f8 (patch) | |
tree | 3e66731c507d6e82c86dc6267dca8dee1598f661 /sys-block/partimage/files/partimaged.init.2 | |
parent | app-text/opensp: autoreconf to build opensp for ppc64le #580792 (diff) | |
download | ppc64le-ac7763cfd629bdf3f90ed5c38f4f2cfe38db14f8.tar.gz ppc64le-ac7763cfd629bdf3f90ed5c38f4f2cfe38db14f8.tar.bz2 ppc64le-ac7763cfd629bdf3f90ed5c38f4f2cfe38db14f8.zip |
sys-block/partimage: copy from tree
Diffstat (limited to 'sys-block/partimage/files/partimaged.init.2')
-rw-r--r-- | sys-block/partimage/files/partimaged.init.2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-block/partimage/files/partimaged.init.2 b/sys-block/partimage/files/partimaged.init.2 new file mode 100644 index 0000000..61e6e64 --- /dev/null +++ b/sys-block/partimage/files/partimaged.init.2 @@ -0,0 +1,29 @@ +#!/sbin/openrc-run +# Copyright 2005-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later +# $Id$ + +PARTIMAGED="/usr/sbin/partimaged" + +failed_startup() { + eerror "The PartImage daemon did not start up correctly." + eerror "Perhaps you compiled it with SSL support but forgot to run the ebuild config?" + return 1 +} + +depend() { + need net +} + +start() { + ebegin "Starting partimaged" + start-stop-daemon --start --exec ${PARTIMAGED} \ + -- ${PARTIMAGED_OPTS} --daemon + eend $? || failed_startup +} + +stop() { + ebegin "Stopping partimaged" + start-stop-daemon --stop --exec ${PARTIMAGED} + eend $? +} |