#!/bin/bash action=$1 if [ -z "$action" ]; then action=off fi for svc in $(< services.lst); do echo $svc chkconfig --level 35 $svc $action done