5 |
|
|
6 |
set_system_service() |
set_system_service() |
7 |
{ |
{ |
8 |
local command="$1" |
local command="${CLASS_ARGV[0]}" |
9 |
local service="$2" |
local service="${CLASS_ARGV[1]}" |
10 |
local opts="$3" |
local opts="${CLASS_ARGV[2]}" |
11 |
|
|
12 |
[[ -z ${command} ]] && help_system_service && return 1 |
[[ -z ${command} ]] && help_system_service && return 1 |
13 |
[[ -z ${service} ]] && help_system_service && return 1 |
[[ -z ${service} ]] && help_system_service && return 1 |
41 |
|
|
42 |
get_system_service() |
get_system_service() |
43 |
{ |
{ |
44 |
local command="$1" |
local command="${CLASS_ARGV[0]}" |
45 |
local service="$2" |
local service="${CLASS_ARGV[1]}" |
46 |
|
|
47 |
[[ -z ${command} ]] && help_system_service && return 1 |
[[ -z ${command} ]] && help_system_service && return 1 |
48 |
[[ -z ${service} ]] && help_system_service && return 1 |
[[ -z ${service} ]] && help_system_service && return 1 |