@exreve/exk 1.0.5 → 1.0.7
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/index.ts +3 -0
- package/install-service.sh +2 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -2875,6 +2875,9 @@ program
|
|
|
2875
2875
|
execSync('npm i -g pm2', { stdio: 'inherit' })
|
|
2876
2876
|
}
|
|
2877
2877
|
|
|
2878
|
+
// Delete existing pm2 process if any, then start fresh
|
|
2879
|
+
try { execSync('pm2 delete cli 2>/dev/null', { stdio: 'ignore' }) } catch {}
|
|
2880
|
+
|
|
2878
2881
|
// Start exk daemon with pm2
|
|
2879
2882
|
execSync(`pm2 start "${exkBin}" --name cli --interpreter none -- daemon`, {
|
|
2880
2883
|
stdio: 'inherit'
|
package/install-service.sh
CHANGED