Explorar el Código

整体的优化修改脚本, 使得移植时改动最少

niujiuru hace 1 semana
padre
commit
0275a649f5
Se han modificado 1 ficheros con 14 adiciones y 0 borrados
  1. 14 0
      scripts/modules/myapp

+ 14 - 0
scripts/modules/myapp

@@ -0,0 +1,14 @@
+#!/bin/sh
+# start/stop an application
+# 2014-07-29 09:45 created by niujiuru
+
+start()
+{
+  chmod a+x ${APPBINS_PATH}/${APPNAME}
+  ${APPBINS_PATH}/${APPNAME} &
+}
+
+stop()
+{
+  kill_programs ${APPNAME} 9
+}