blob: c1a160914f039d2438b51836e5f4f2156bd9bd2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/sbin/runscript
# Copyright 2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/sys-apps/partimage/files/partimaged.init,v 1.1 2005/01/16 15:30:56 xmerlin Exp $
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 --quiet --exec ${PARTIMAGED} \
-- ${PARTIMAGED_OPTS} --daemon &> /dev/null
eend $? || failed_startup
}
stop() {
ebegin "Stopping partimaged"
start-stop-daemon --stop --exec ${PARTIMAGED}
eend $?
}
|