repowisestage 0.0.1-staging.2 → 0.0.1-staging.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/repowise.js +12 -5
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -3599,6 +3599,8 @@ async function status() {
|
|
|
3599
3599
|
console.log("===============");
|
|
3600
3600
|
if (processRunning) {
|
|
3601
3601
|
console.log(`Listener: running (PID: ${pid})`);
|
|
3602
|
+
} else if (serviceInstalled) {
|
|
3603
|
+
console.log("Listener: running (managed by system service)");
|
|
3602
3604
|
} else {
|
|
3603
3605
|
console.log("Listener: stopped");
|
|
3604
3606
|
}
|
|
@@ -3912,16 +3914,21 @@ async function start() {
|
|
|
3912
3914
|
// src/commands/stop.ts
|
|
3913
3915
|
async function stop2() {
|
|
3914
3916
|
try {
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3917
|
+
let stopped = false;
|
|
3918
|
+
if (await isRunning()) {
|
|
3919
|
+
await stopProcess();
|
|
3920
|
+
stopped = true;
|
|
3918
3921
|
}
|
|
3919
|
-
await stopProcess();
|
|
3920
3922
|
try {
|
|
3921
3923
|
await stopService();
|
|
3924
|
+
stopped = true;
|
|
3922
3925
|
} catch {
|
|
3923
3926
|
}
|
|
3924
|
-
|
|
3927
|
+
if (stopped) {
|
|
3928
|
+
console.log("Listener stopped.");
|
|
3929
|
+
} else {
|
|
3930
|
+
console.log("Listener is not running.");
|
|
3931
|
+
}
|
|
3925
3932
|
} catch (err) {
|
|
3926
3933
|
const message = err instanceof Error ? err.message : "Unknown error";
|
|
3927
3934
|
console.error(`Failed to stop listener: ${message}`);
|