Skip to content

Commit

Permalink
Shortcut to start/stop all IOCs
Browse files Browse the repository at this point in the history
  • Loading branch information
huyong1979 authored and Michael Davidsaver committed Apr 1, 2013
1 parent 1041283 commit 9fc119e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions manage-iocs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ usage() {
echo " install <ioc> - Create /etc/init.d/softioc-[ioc]"
echo " enable <ioc> - Register IOC to start during system boot"
echo " disable <ioc> - Un-register IOC"
echo " startall - Start all IOCs installed for this system"
echo " stopall - Stop all IOCs installed for this system"
exit 2
}

Expand Down Expand Up @@ -204,6 +206,22 @@ disable)
update-rc.d -f "softioc-$1" remove
;;

stopall)
requireroot
for initfile in /etc/init.d/softioc-*
do
$initfile stop
done
;;

startall)
requireroot
for initfile in /etc/init.d/softioc-*
do
$initfile start
done
;;

help)
usage
;;
Expand Down

0 comments on commit 9fc119e

Please sign in to comment.