Explorar o código

脚本函数定义

tangs %!s(int64=6) %!d(string=hai) anos
pai
achega
46d90ae01c
Modificáronse 1 ficheiros con 56 adicións e 0 borrados
  1. 56 0
      server.sh

+ 56 - 0
server.sh

@@ -0,0 +1,56 @@
+#!/bin/bash
+#
+# Description: server
+#
+# Source function library
+. /etc/init.d/functions
+
+NAME=SERVER_NAME
+USER=SERVER_USER
+
+# Start the server
+start (){
+
+}
+
+# Stop the server
+stop (){
+
+}
+
+# Return the status of the server
+status (){
+
+}
+
+# Restart the server
+restart (){
+
+}
+
+usage (){
+
+}
+
+
+case $1 in
+start)
+	start
+	;;
+
+stop)
+	stop
+	;;
+
+restart)
+	restart
+	;;
+
+status)
+	status
+	;;
+*)
+	usage
+	exit 1
+	;;
+esac