Skip to content
Browse files

new control module for php cask

  • Loading branch information...
1 parent 0a8b734 commit 584bef81f8b05498665e36594b154631cf58ff91 @videlalvaro committed May 12, 2010
Showing with 13 additions and 3 deletions.
  1. +3 −2 ebin/phpcask.app
  2. +9 −0 src/phpcask_control.erl
  3. +1 −1 start-dev.sh
View
5 ebin/phpcask.app
@@ -5,9 +5,10 @@
{modules, [
phpcask,
phpcask_app,
- phpcask_sup
+ phpcask_sup,
+ phpcask_control
]},
- {registered, []},
+ {registered, [phpcask]},
{applications, [
kernel,
stdlib
View
9 src/phpcask_control.erl
@@ -0,0 +1,9 @@
+-module(phpcask_control).
+
+-export([start/0, stop/0]).
+
+start() ->
+ application:start(phpcask).
+
+stop() ->
+ application:stop(phpcask).
View
2 start-dev.sh
@@ -1,4 +1,4 @@
#!/bin/sh
cd `dirname $0`
-erl -pa $PWD/ebin -sname phpcask -s phpcask
+erl -pa $PWD/ebin -sname phpcask -s phpcask_control

0 comments on commit 584bef8

Please sign in to comment.
Something went wrong with that request. Please try again.