(info: DaemonLockInfo)
| 233 | * human readability — operators occasionally `cat` this when debugging. |
| 234 | */ |
| 235 | export function encodeLockInfo(info: DaemonLockInfo): string { |
| 236 | return JSON.stringify(info, null, 2) + '\n'; |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Parse a pidfile body. Tolerant of old-format pidfiles (plain decimal pid) so |
no outgoing calls