Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.536 kB
#!/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
}
Jump to Line
Something went wrong with that request. Please try again.