MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / stopRclone

Function stopRclone

src/utils/rclone/process.ts:68–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68async function stopRclone() {
69 await delStorage(openlistInfo.markInRclone)
70 await stopSidecarGracefully({
71 binary: 'binaries/rclone',
72 name: 'rclone',
73 graceful: async () => {
74 await rclone_api_post('/core/quit')
75 },
76 })
77 rcloneInfo.process.child = undefined as unknown as Child
78}
79
80async function restartRclone() {
81 await restartSidecar(stopRclone, startRclone)

Callers 2

exitFunction · 0.90
startRcloneFunction · 0.85

Calls 3

delStorageFunction · 0.90
stopSidecarGracefullyFunction · 0.90
rclone_api_postFunction · 0.90

Tested by

no test coverage detected