slitaz-tools view tinyutils/stopd @ rev 902

bin/editor fix:infinite-loop($EDITOR=nano/mcedit case),param-handling (copyq).
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Sep 26 02:58:59 2014 +0000 (2014-09-26)
parents
children 5d80f6fdbdb7
line source
1 #!/bin/sh
2 #
3 # Stopd - Small wrapper to stop daemons on SliTaz.
4 #
5 . /lib/libtaz.sh
6 check_root
8 [ ! "$1" ] && echo "Usage: stopd [daemon]" && exit 0
10 if [ -x /etc/init.d/$1 ]; then
11 /etc/init.d/$1 stop
12 fi
14 exit 0