(info: DaemonLockInfo)
| 180 | * human readability — operators occasionally `cat` this when debugging. |
| 181 | */ |
| 182 | export function encodeLockInfo(info: DaemonLockInfo): string { |
| 183 | return JSON.stringify(info, null, 2) + '\n'; |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so |
no outgoing calls