Skip to content

Commit 1d863ba

Browse files
AnthonyAkentievindexzero
authored andcommitted
Renaming stoppid -> stopbypid
1 parent 4adf834 commit 1d863ba

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can use forever to run any kind of script continuously (whether it is writte
3131
start Start SCRIPT as a daemon
3232
stop Stop the daemon SCRIPT
3333
stopall Stop all running forever scripts
34-
stoppid Stop running forever script by pid
34+
stopbypid Stop running forever script by pid
3535
restart Restart the daemon SCRIPT
3636
restartall Restart all running forever scripts
3737
list List all running forever scripts

lib/forever.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,12 @@ forever.restart = function (target, format) {
573573
};
574574

575575
//
576-
// ### function stoppid (target, format)
576+
// ### function stopbypid (target, format)
577577
// #### @pid {string} Pid of process to stop.
578578
// #### @format {boolean} Indicated if we should CLI format the returned output.
579579
// Stops the process with specified pid
580580
//
581-
forever.stoppid = function (pid, format) {
581+
forever.stopbypid = function (pid, format) {
582582
// stopByPid only capable of stopping, but can't restart
583583
return stopByPid('stop', format, pid);
584584
};

lib/forever/cli.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var help = [
2525
' start Start SCRIPT as a daemon',
2626
' stop Stop the daemon SCRIPT',
2727
' stopall Stop all running forever scripts',
28-
' stoppid Stop running forever script by pid',
28+
' stopbypid Stop running forever script by pid',
2929
' restart Restart the daemon SCRIPT',
3030
' restartall Restart all running forever scripts',
3131
' list List all running forever scripts',
@@ -88,7 +88,7 @@ var app = flatiron.app;
8888
var actions = [
8989
'start',
9090
'stop',
91-
'stoppid',
91+
'stopbypid',
9292
'stopall',
9393
'restart',
9494
'restartall',
@@ -290,11 +290,11 @@ app.cmd(/stop (.+)/, cli.stop = function (file) {
290290
});
291291

292292
//
293-
// ### function stoppid (pid)
293+
// ### function stopbypid (pid)
294294
// Stops running forever process by pid.
295295
//
296-
app.cmd(/stoppid (.+)/, cli.stoppid = function (pid) {
297-
var runner = forever.stoppid(pid, true);
296+
app.cmd(/stopbypid (.+)/, cli.stopbypid = function (pid) {
297+
var runner = forever.stopbypid(pid, true);
298298

299299
runner.on('stop', function (process) {
300300
forever.log.info('Forever stopped process:');

0 commit comments

Comments
 (0)