Open yalinhuang opened 7 years ago
The error msg hints to run pgctl stop --force playground/sweet but this doesn't work. It should be pgctl stop sweet --force. See the example below
pgctl stop --force playground/sweet
pgctl stop sweet --force
~/pgctl/tests/examples/orphan-subprocess (master) $ pgctl status ● slow-startup: down ● sweet: down ~/pgctl/tests/examples/orphan-subprocess (master) $ pgctl start sweet [pgctl] Starting: sweet [pgctl] Started: sweet ~/pgctl/tests/examples/orphan-subprocess (master) $ pgctl stop sweet [pgctl] Stopping: sweet [pgctl] ERROR: service 'sweet' failed to stop after 2.11 seconds (it took 0.419776916504s to poll), these runaway processes did not stop: UID PID PPID PGID SID C STIME TTY STAT TIME CMD yalinh 130401 1 130349 71069 0 15:27 pts/30 S 0:00 sleep infinity There are two ways you can fix this: * temporarily: pgctl stop --force playground/sweet * permanently: http://pgctl.readthedocs.org/en/latest/user/quickstart.html#writing-playground-services ==> playground/sweet/log <== 2017-03-13 11:54:26.021122 sweet 2017-03-13 11:54:26.021201 sweet_error 2017-03-13 11:58:27.983388 sweet 2017-03-13 11:58:27.983463 sweet_error 2017-03-13 13:59:58.782069 sweet 2017-03-13 13:59:58.782217 sweet_error 2017-03-13 14:21:27.055529 sweet 2017-03-13 14:21:27.055662 sweet_error 2017-03-13 14:21:48.865453 sweet 2017-03-13 14:21:48.865531 sweet_error 2017-03-13 15:27:11.419549 sweet 2017-03-13 15:27:11.419637 sweet_error [pgctl] [pgctl] There might be useful information further up in the log; you can view it by running: [pgctl] less +G playground/sweet/log [pgctl] ERROR: Some services failed to stop: sweet ~/pgctl/tests/examples/orphan-subprocess (master) $ pgctl stop --force playground/sweet usage: pgctl [-h] [--version] [--pgdir PGDIR] [--pghome PGHOME] [--json] [--force] [--all] {start,stop,status,restart,reload,log,debug,config} [services [services ...]] pgctl: error: unrecognized arguments: playground/sweet ~/pgctl/tests/examples/orphan-subprocess (master) $ pgctl stop sweet --force [pgctl] Stopping: sweet [pgctl] WARNING: Killing these runaway processes at user's request (--force): UID PID PPID PGID SID C STIME TTY STAT TIME CMD yalinh 130401 1 130349 71069 0 15:27 pts/30 S 0:00 sleep infinity Learn why they did not stop: http://pgctl.readthedocs.org/en/latest/user/quickstart.html#writing-playground-services [pgctl] Stopped: sweet
The error msg hints to run
pgctl stop --force playground/sweet
but this doesn't work. It should bepgctl stop sweet --force
. See the example below