Merge branch 'bugfix__start_on_boot' of https://github.com/dheule/cdist

remotes/origin/4.0-pre-not-stable
Nico Schottelius 11 years ago
commit 386a84eafc
  1. 11
      cdist/conf/type/__start_on_boot/explorer/state

@ -39,10 +39,19 @@ case "$os" in
[ -f "/etc/rc$runlevel.d/S"??"$name" ] || state="absent"
;;
amazon|centos|fedora|owl|redhat|suse)
amazon|centos|fedora|owl|redhat)
state=$(chkconfig --level "$runlevel" "$name" || echo absent)
[ "$state" ] || state="present"
;;
suse)
# check for target if set, usable for boot. services in runlevel B
if [ "$target_runlevel" != 'default' ]; then
runlevel="$target_runlevel"
fi
# suses chkconfig has the same name, but works different ...
state=$(chkconfig --check "$name" "$runlevel" || echo absent)
[ "$state" ] || state="present"
;;
gentoo)
state="present"
[ -f "/etc/runlevels/${target_runlevel}/${name}" ] || state="absent"

Loading…
Cancel
Save