Permalink
Browse files

create binaries with c

  • Loading branch information...
1 parent 3c063d6 commit bd0a74ac0b70db22422b5d62ba933454d2ee4ac8 @jyr committed Jan 7, 2011
Showing with 19 additions and 3 deletions.
  1. +2 −2 conf/php5/php-fpm
  2. BIN init/start
  3. +8 −0 init/start.c
  4. +1 −1 init/start.sh
  5. BIN init/stop
  6. +8 −0 init/stop.c
View
@@ -60,10 +60,10 @@
</value>
Unix user of processes
- <!-- <value name="user">nobody</value> -->
+ <value name="user">nobody</value>
Unix group of processes
- <!-- <value name="group">nobody</value> -->
+ <value name="group">nobody</value>
Process manager settings
<value name="pm">
View
Binary file not shown.
View
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(){
+ system("sh /Applications/MEMP/init/php-fpm.sh start");
+ //system("sh /Applications/MEMP/init/mysql.sh start");
+ system("sh /Applications/MEMP/init/nginx.sh start");
+ return 0;
+}
View
2 init/start.sh 100644 → 100755
@@ -2,4 +2,4 @@
sh /Applications/MEMP/init/php-fpm.sh start
sh /Applications/MEMP/init/mysql.sh start
-sudo sh /Applications/MEMP/init/nginx.sh start
+sh /Applications/MEMP/init/nginx.sh start
View
BIN init/stop
Binary file not shown.
View
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(){
+ system("sh /Applications/MEMP/init/php-fpm.sh stop");
+ //system("sh /Applications/MEMP/init/mysql.sh stop");
+ system("sh /Applications/MEMP/init/nginx.sh stop");
+ return 0;
+}

0 comments on commit bd0a74a

Please sign in to comment.