Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 536 Bytes
#!/bin/sh
service_extension_setup()
{
typeset extension module path
extension="${1:-}"
module="${2:-}"
path="${3:-}"
true ${language:=shell}
(( $# )) && shift || __sm.log.fail "Extension name not given as first parameter."
(( $# )) && shift || __sm.log.fail "Module name not given as second parameter."
(( $# )) && shift || __sm.log.fail "Path not given as third parameter."
for action in start stop restart status list
do
files write append string "${action}=${module}_${action}()" to "${path}/map"
done
}
Something went wrong with that request. Please try again.