mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 12:24:50 +00:00
config.cli: forward stderr and stdout of managed rTorrent daemon
This commit is contained in:
@@ -161,6 +161,12 @@ if (argv.rtorrent) {
|
||||
|
||||
const rTorrentProcess = spawn('rtorrent', args.concat(['-o', opts]));
|
||||
|
||||
rTorrentProcess.stderr.on('data', (data) => {
|
||||
console.error(`${data}`);
|
||||
});
|
||||
rTorrentProcess.stdout.on('data', (data) => {
|
||||
console.log(`${data}`);
|
||||
});
|
||||
rTorrentProcess.on('close', () => {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user