#!/bin/bash
# chkconfig: 2345 91 90 // 91은 chkconfig add 시 시작할때 넘버 90은 죽어있을때 넘버
# description: test service // 여기까지 세줄은 꼭넣어줘야 함
case "$1" in
start)
touch /root/theko.deamon
;;
stop)
rm -rf /root/theko.deamon
;;
*)
echo "Usage {start|stop}"
exit 1
;;
esac
exit 0
# chmod 755 theko
# mv theko /etc/init.d/
# chkconfig --add theko
# chkconfig theko on