瀏覽代碼

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

niujiuru 1 周之前
父節點
當前提交
0275a649f5
共有 1 個文件被更改,包括 14 次插入0 次删除
  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
+}