init

来自「Unix、Linux系统下的分布式编译工具的源码」· 代码 · 共 81 行

TXT
81
字号
#! /bin/sh## chkconfig: - 60 20# description: The distcc deamon#              http://distcc.samba.org## processname: distccd# This is a Red Hat init.d file to start distccd.  To install it, copy# it into /etc/init.d/distccd, and add appropriate links into the# rc?.d directories.# It may need to be tweaked for other distributions or versions.# You may wish to accept parameters from the user to set access# control options.# Get config.. /etc/sysconfig/network# Get functions. /etc/init.d/functions# Check that networking is up.if [ ${NETWORKING} = "no" ] ; then	exit 0fiRETVAL=0SERVICE=distccdstart() { 	echo -n $"Starting $SERVICE: "	daemon /usr/local/bin/$SERVICE --daemon	RETVAL=$?	echo	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SERVICE	return $RETVAL}	stop() {	echo -n $"Stopping $SERVICE: "	killproc $SERVICE	RETVAL=$?	echo	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$SERVICE	return $RETVAL}	restart() {	stop	start}	# See how we were called.case "$1" in start) 	start	;; stop) 	stop	;; status) 	status $SERVICE	;; restart) 	restart	;; condrestart) 	[ -f /var/lock/subsys/$SERVICE ] && restart || :	;; *)	echo $"Usage: $0 {start|stop|status|restart}"	exit 1	;;esacexit $?

⌨️ 快捷键说明

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