yoics.startup.file

来自「yoics 上抓下來的源碼,用於遠端vnc 資料分享的工具 http://y」· FILE 代码 · 共 112 行

FILE
112
字号
#!/bin/sh## chkconfig: 35 91 35# description: Yoics daemon startup script##  Use "chkconfig --levels 345 yoics on" to get this script to run at startup ## www.yoics.com   -   See Readme.txt for more information## You shouldn't have to edit below unless your doing advanced settings#exe=yoicsd## Put the config file location here, should point to a verison of yoics.txt for your service you wish to share#exe_path=/usr/sbin/$exe## make sure this is different if you are running more than one copy of this daemon and makesure# this filename matches and that you use that in the chkconfig statement to activage#daemon_name=yoics#pidfile=/var/run/$daemon_name.pid# Source function library.if [ -f /etc/init.d/functions ] ; then  . /etc/init.d/functionselif [ -f /etc/rc.d/init.d/functions ] ; then  . /etc/rc.d/init.d/functionselse  exit 0fiRETVAL=0start() {   RETVAL=1   echo -n "Starting $daemon_name: "   if [ -f ${pidfile} ] ; then	echo -n "already running "   else        $exe_path -f /etc/yoics.txt -d $pidfile >/dev/null  	if [ -f ${pidfile} ] ; then   		RETVAL=0   	fi   fi   [ $RETVAL -eq 0 ] && success $"$daemon_name startup" || failure $"$daemon_name startup"   echo   return $RETVAL}stop() {   echo -n "Shutting down $daemon_name: "    killproc $daemon_name   echo   return $RETVAL}restart() {	if [ -f ${pidfile} ] ; then                stop        	sleep 1	        start	else		echo -n "Not Currently Running"		failure $"$daemon_name restart"			echo	fi}reload() {   restart}rhstatus() {   status yoicsd}# Allow status as non-root.if [ "$1" = status ]; then       rhstatus       exit $?ficase "$1" in  start)     start   ;;  stop)     stop   ;;  restart)     restart   ;;  reload)     reload   ;;  status)     rhstatus   ;;  *)   echo -n "Usage: $0 {start|stop|restart|reload|status}"    echo	   exit 1esacexit $? 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?