chadw Posted September 13, 2015 Report Share Posted September 13, 2015 Hello, With btsync 2.2 (100) -- on Ubuntu 14.04 -- I notice that when I runbtsync --config $conf --nodaemon --log sync.logthen file sync.log is either in the current directory (if I am logged in a terminal) or the home directory of the user who runs the command (upstart script): the file is not in ${storage_path}/sync.log. Is there a way to have the log in ${storage_path} automatically (other than giving the absolute path to the file as an argument to --log) ? Quote Link to comment Share on other sites More sharing options...
Moe Posted September 13, 2015 Report Share Posted September 13, 2015 Uh.. tried that?btsync --config $conf --nodaemon --log ${storage_path}/sync.logI mean you must have a script that calls that and in that script ${storage_path} should be defined as a path.And you edit the line that actually calls the btsync binary with the line I posted above. Quote Link to comment Share on other sites More sharing options...
chadw Posted September 14, 2015 Author Report Share Posted September 14, 2015 Of course (I said "other than giving the absolute path"), but with bsync 2.1.4 it was different:if btsync was started with --nodaemon --log sync.log, sync.log was created in ${storage_path},not the current directory. I used that in a simple upstart script, and there was no need to parse $conf to extract storage_path.Something has changed in 2.2 Quote Link to comment Share on other sites More sharing options...
RomanZ Posted September 14, 2015 Report Share Posted September 14, 2015 @chadwYou can just omit the --log switch. If not specified, sync.log is created in storage folder. Quote Link to comment Share on other sites More sharing options...
chadw Posted September 14, 2015 Author Report Share Posted September 14, 2015 @chadwYou can just omit the --log switch. If not specified, sync.log is created in storage folder.Not in --nodaemon mode: log is sent to stdout. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.