You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/partimage/files/partimaged.init.2

29 lines
628 B

#!/sbin/openrc-run
# Copyright 2005-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
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 $?
}