Skip to content

Instantly share code, notes, and snippets.

@ninnypants
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ninnypants/9879461 to your computer and use it in GitHub Desktop.
Save ninnypants/9879461 to your computer and use it in GitHub Desktop.

lsyncd starts and transfers all files to remote directory, but doesn't continue to update as files are edited. Status says that inotify is watching 0 directories.

lsyncd config file run with sudo lsyncd -nodaemon site

settings {
	logfile = '/Users/ninnypants/Sites/lsyncd/log',
	statusFile = '/Users/ninnypants/Sites/lsyncd/status',
	statusInterval = 2,
	maxDelays = 2
}
sync {
	default.rsyncssh,
	source = '/Users/ninnypants/Sites/site/',
	targetdir = '/var/www/site/',
	host = 'user@example',
	excludeFrom = '/Users/ninnypants/Sites/lsyncd/exclude',
	rsync = {
		binary = '/usr/local/bin/rsync'
	}
}

Terminal output after starting lsyncd. Seems to be uploading and deleting temp files, but not other modified files.

Sun Mar 30 14:30:59 2014 Normal: recursive startup rsync: /Users/ninnypants/Sites/site/ -> user@example.com:/var/www/site/ excluding
.git
node_modules
Sun Mar 30 14:31:01 2014 Normal: Startup of "/Users/ninnypants/Sites/site/" finished.
Sun Mar 30 14:31:38 2014 Normal: Deleting list
/var/www/site//.sublbf2.tmp
Sun Mar 30 14:31:38 2014 Normal: Deleting list
/var/www/site//.sublbf2.tmp
Sun Mar 30 14:31:38 2014 Normal: Deleting list
/var/www/site//.sublbf2.tmp
Sun Mar 30 14:31:38 2014 Normal: Deleting list
/var/www/site//.sublbf2.tmp
Sun Mar 30 14:31:39 2014 Normal: Finished (list): 0
Sun Mar 30 14:31:39 2014 Normal: Finished (list): 0
Sun Mar 30 14:31:39 2014 Normal: Finished (list): 0
Sun Mar 30 14:31:39 2014 Normal: Finished (list): 0

lsyncd status stays like this continuously after starting.

Lsyncd status report at Sun Mar 30 14:39:05 2014

Sync1 source=/Users/ninnypants/Sites/site/
There are 0 delays
Excluding:
.git
node_modules


Inotify watching 0 directories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment