initial import
This commit is contained in:
23
partimage/partimaged.initd
Normal file
23
partimage/partimaged.initd
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2005-2010 Gentoo Foundation
|
||||
# Copyright 2019 Hyperbola Project
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
PARTIMAGED="/usr/sbin/partimaged"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting partimaged"
|
||||
start-stop-daemon --start --exec ${PARTIMAGED} \
|
||||
-- ${PARTIMAGED_OPTS} --daemon
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping partimaged"
|
||||
start-stop-daemon --stop --exec ${PARTIMAGED}
|
||||
eend $?
|
||||
}
|
||||
Reference in New Issue
Block a user