@@ -160,12 +160,30 @@ Check if service is running:
160160launchctl list | grep custom_httpserver
161161```
162162
163+ Validate plist syntax (optional):
164+ ``` bash
165+ plutil ~ /Library/LaunchAgents/com.custom.httpserver.plist
166+ ```
167+
168+ Example:
169+ ```
170+ muthukumar@muthukumar custom-http-server % plutil /Users/muthukumar/Library/LaunchAgents/com.custom_http_server.plist
171+ /Users/muthukumar/Library/LaunchAgents/com.custom_http_server.plist: OK
172+ muthukumar@muthukumar custom-http-server %
173+ ```
174+
163175Watch logs in real time:
164176
165177``` bash
166178watch " cat /tmp/custom_httpserver.log"
167179```
168180
181+ Or using ` tail `
182+
183+ ``` bash
184+ tail -f /tmp/custom_httpserver.log
185+ ```
186+
169187Example ` .log ` log:
170188
171189```
@@ -195,6 +213,12 @@ Or **error** logs:
195213watch " cat /tmp/custom_httpserver.err"
196214```
197215
216+ Or using ` tail `
217+
218+ ``` bash
219+ tail -f /tmp/custom_httpserver.err
220+ ```
221+
198222Example ` .err ` log:
199223
200224```
@@ -225,23 +249,25 @@ muthukumar@muthukumar custom-http-server %
225249
226250### ❌ Uninstall (macOS)
227251
228- Manually remove the background service:
252+ ✅ ** Automated (recommended): **
229253
230254``` bash
231- launchctl unload ~ /Library/LaunchAgents/com.custom_http_server.plist
232- rm -f ~ /Library/LaunchAgents/com.custom_http_server.plist
233- launchctl list | grep custom_httpserver
255+ cd custom-http-server/custom-http-server
256+ sudo ./uninstall.sh
234257```
235258
236- ✅ Should return nothing ` launchctl list | grep custom_httpserver `
259+ ---
237260
238- Or use the provided uninstallation script:
261+ 🛠️ ** Manual (if needed): **
239262
240263``` bash
241- cd custom-http-server/custom-http-server
242- sudo ./uninstall.sh
264+ launchctl unload ~ /Library/LaunchAgents/com.custom_http_server.plist
265+ rm -f ~ /Library/LaunchAgents/com.custom_http_server.plist
266+ launchctl list | grep custom_httpserver
243267```
244268
269+ ✅ The final command ` launchctl list | grep custom_httpserver ` should return nothing.
270+
245271---
246272
247273## ✅ Final Notes
0 commit comments