Showing 1 changed files with 10 additions and 15 deletions
+10 -15
README.md
... ...
@@ -143,33 +143,28 @@ You can stop application by **--stop** option.
143 143
 
144 144
     ./gitprep --stop
145 145
 
146
-### Operation by root user
146
+### Operation from root user
147 147
 
148
-You can operation application by root user.
149
-
150
-    su -
151
-
152
-you must setsid to user for security.
153
-
154
-    su - gitprep -c "chmod u+s /home/gitprep/gitprep/gitprep"
148
+You can operation application from root user.
155 149
 
156 150
 Start application
157 151
 
158
-    /home/gitprep/gitprep/gitprep
152
+    sudo -u webdbviewer /home/webdbviewer/webdbviewer/webdbviewer
159 153
 
160 154
 Stop application
161 155
 
162
-    /home/gitprep/gitprep/gitprep --stop
156
+    sudo -u webdbviewer /home/webdbviewer/webdbviewer/webdbviewer --stop
163 157
 
164 158
 If you want to start application when os start,
165
-add the application start command to **rc.local** file(Linux).
159
+add the start application command to **rc.local**(Linux).
166 160
 
167
-If you want to make easy to manage gitprep,
168
-Let's create run script in webapp directory.
161
+If you want to make easy to manage webdbviewer,
162
+Let's create run script.
169 163
     
170 164
     mkdir -p /webapp
171
-    /home/gitprep/gitprep/create_run_script > /webapp/gitprep
172
-    chmod 755 /webapp/gitprep
165
+    echo '#!/bin/sh' > /webapp/webdbviewer
166
+    echo 'sudo -u webdbviewer /home/webdbviewer/webdbviewer/webdbviewer $*' >> /webapp/webdbviewer
167
+    chmod 755 /webapp/webdbviewer
173 168
 
174 169
 You can start and stop application the following command.
175 170