Showing 3 changed files with 14 additions and 11 deletions
+11 -9
README.md
... ...
@@ -154,7 +154,8 @@ If you want to do operation by root user,
154 154
 you must do some configuration for security.
155 155
 
156 156
 You add **user** and **group** to **hypnotoad** section
157
-in **gitprep.conf** to execute not root user for security.
157
+in **gitprep.conf** not to execute application by root user
158
+for security.
158 159
 
159 160
     [hypnotoad]
160 161
     ...
... ...
@@ -170,21 +171,22 @@ Stop application
170 171
     /home/gitprep/gitprep/gitprep --stop
171 172
 
172 173
 If you want to start application when os start,
173
-add the start application command to **rc.local**(Linux).
174
+add the application start command to **rc.local** file(Linux).
174 175
 
175 176
 If you want to make easy to manage gitprep,
176
-Let's create run script in /usr/local/sbin.
177
-
178
-    /home/gitprep/gitprep/create_run_script > /usr/local/sbin/run_gitprep
179
-    chmod 755 /usr/local/sbin/run_gitprep
177
+Let's create run script in webapp directory.
178
+    
179
+    mkdir -p /webapp
180
+    /home/gitprep/gitprep/create_run_script > /webapp/gitprep
181
+    chmod 755 /webapp/gitprep
180 182
 
181 183
 You can start and stop application the following command.
182 184
     
183
-    # Start/Restart
184
-    run_gitprep
185
+    # Start or Restart
186
+    /webapp/gitprep
185 187
     
186 188
     # Stop
187
-    run_gitprep --stop
189
+    /webapp/gitprep --stop
188 190
     
189 191
 ## Developer
190 192
 
+1 -1
create_run_script
... ...
@@ -8,7 +8,7 @@ my $app_path = "$FindBin::Bin/gitprep";
8 8
 
9 9
 my $script = <<"EOS";
10 10
 #!/bin/sh
11
-$app_path \$*
11
+exec $app_path \$*
12 12
 EOS
13 13
 
14 14
 print $script;
+2 -1
gitprep
... ...
@@ -3,4 +3,5 @@
3 3
 DIR=$(dirname $0)
4 4
 PERL5LIB="$DIR/mojo/lib:$DIR/extlib/lib/perl5"
5 5
 export PERL5LIB
6
-$DIR/mojo/script/hypnotoad $* $DIR/script/gitprep
6
+exec $DIR/mojo/script/hypnotoad $* $DIR/script/gitprep
7
+