additional parameter base_dir

remotes/origin/feature_files_export
Daniel Roth 14 years ago
parent 5f1afb08f6
commit 342cbca533
  1. 16
      conf/type/__init_script/gencode-remote
  2. 4
      conf/type/__init_script/man.text
  3. 1
      conf/type/__init_script/parameter/optional

@ -19,12 +19,20 @@
#
#
if [ -f "$__object/parameter/service" ]; then
service=$(cat "$__object/parameter/service")
if [ -f "$__object/parameter/script" ]; then
script=$(cat "$__object/parameter/script")
else
service="/$__object_id"
script="/$__object_id"
fi
if [ -f "$__object/parameter/base_dir" ]; then
base_dir=$(cat "$__object/parameter/base_dir")
else
base_dir="/etc/init.d"
fi
mode=$(cat "$__object/parameter/mode")
echo "/etc/init.d/${service} ${mode}"
echo "${base_dir}/${script} ${mode}"

@ -23,8 +23,10 @@ OPTIONAL PARAMETERS
-------------------
script::
If supplied, use this as the init-script.
Otherwise the object_id is used. The script will be pretended with '/etc/init.d/'
Otherwise the object_id is used.
base_dir::
If supplied, this type uses this directory instead of '/etc/init.d'. The parameter will not need an ending slash.
EXAMPLES
--------

Loading…
Cancel
Save