Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

create binaries with c

  • Loading branch information...
commit bd0a74ac0b70db22422b5d62ba933454d2ee4ac8 1 parent 3c063d6
Jyr Gaxiola authored
4 conf/php5/php-fpm
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">
BIN  init/start
View
Binary file not shown
8 init/start.c
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;
+}
2  init/start.sh 100644 → 100755
View
@@ -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
BIN  init/stop
View
Binary file not shown
8 init/stop.c
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;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.