Repository navigation
Commit 73a96dc
committed
Fix stop-edge.sh failing to stop its own process when IOTDB_HOME is set
start-edge.sh honours an IOTDB_HOME from the environment and passes that value
to the JVM as -DIOTDB_HOME=..., while stop-edge.sh recomputed IOTDB_HOME from
its own location and matched the command line against that string. When the two
differ -- for example a versioned install reached through a symlink -- the stop
declined to act on its own process, exited 0 and removed the PID file, so a
service manager saw a successful stop while the process kept running.
stop-edge.sh now honours IOTDB_HOME the same way start-edge.sh does, and falls
back to comparing resolved paths when the literal match does not hit. The
original literal comparison is tried first, so any command line that matched
before still matches.1 parent 1106d85 commit 73a96dc
1 file changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| |||
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
34 | | - | |
35 | 44 | | |
36 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | 53 | | |
39 | 54 | | |
| |||
0 commit comments