Simple Question About Log Files Location


Recommended Posts



With btsync 2.2 (100) -- on Ubuntu 14.04 -- I notice that when I run

btsync --config $conf --nodaemon --log sync.log

then 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) ?


Link to comment
Share on other sites

Uh.. tried that?

btsync --config $conf --nodaemon --log ${storage_path}/sync.log

I 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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.