8 Commits

Author SHA1 Message Date
Manorit Chawdhry
aa35f5069a Bug fixes and robustness
- During unsync, it was trying to remove all the directories in all the
  directories instead of just the directory which had been unsynced

- In rare scenarios when some race condition occurs, the directory as
  well as the backup directory both of them existed which caused the move
  to fail. So, during ungraceful state check, since we have a backup, We
  can delete the directory so that the move is successful

  NOTE: This might still fail if in the short period of time, any other
  process/OS creates our sync directory again before the move is done
  ( This race can only be fixed by bind mounting suggestions I think )
2022-03-26 21:32:56 +05:30
Manorit Chawdhry
997b235140 add debug functionality (#69)
running asd with `DEBUG=1` environment variable will give additional 
insights on the working of asd and what it is doing, it can helpful for 
debugging issues in future
2021-11-29 11:30:41 +05:30
graysky
24d50c6a67 cleanup of Makefile and resync timer 2015-06-27 04:14:09 -04:00
graysky
787225ee1f resync service start timer automatically 2014-08-08 20:07:35 -04:00
graysky
e7796eebdf fixed cosmetic typo in service file 2013-10-07 20:42:11 -04:00
graysky
2426d2a1ca modified service file for windindd support 2013-08-29 15:03:21 -04:00
graysky
728472eda7 merged into single Makefile 2013-07-04 11:21:04 -04:00
graysky
3c407777e8 standardizing the psd and asd code base + ubuntu init script 2013-03-26 12:20:22 -04:00