mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
27 lines
476 B
Plaintext
Executable File
27 lines
476 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
description="Administration tool for managing RisingTide Systems storage targets"
|
|
command="/usr/bin/targetcli"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting ${RC_SVCNAME}"
|
|
for mod in $MODULES; do
|
|
modprobe $mod
|
|
done
|
|
mount -t configfs none /sys/kernel/config
|
|
$command restoreconfig clear_existing=true
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping ${RC_SVCNAME}"
|
|
$command clearconfig confirm=true
|
|
umount /sys/kernel/config
|
|
eend $?
|
|
}
|