Hi,
Sorry, I wasn't able to work on lipsync this week end…
On Apr 29, 8:51 pm, phil cryer <
p...@cryer.us> wrote:
> > Unfortunatly, I don't know… I don't know anything about init.d script or
> > rc.d … I'd love to help though so I'll look into it this week end!
>
> Cool, I'll do the same, again, I'd rather have something that worked for
> everyone
I finally manage to make a rc.d script work on archlinux.
Please find here
http://bacardi55.org/55/lipsync/ the etc folder
(etc.tgz) with a rc.d folder inside
and the install.sh.tgz that I changed to make it works.
I saw in your install script that your lsync is in /usr/local/bin/
whereas mine is in /usr/bin/ .
That's why I changed the path to result of the command line : "which
lsync"
to let the script find the path of lsync.
I you prefer, I can fork lipsync on github to make it easier for you
to see all differences
(but it will be tomorrow)
Now that I changed install.sh and the rc.d script, I manage to start
lipsync
with /etc/rc.d/lipsync start
That's the good news, the bad news is :
I tried to sync some files between the server and my laptop.
Just to make it clear, here is what I did :
I didn't install anything on the server other than rsync and ssh
I installed lipsync and lsync on my laptop and configured it.
Again, just to be really clear :
cat /etc/lipsyncd
USER_NAME=**** #user name that exists on both machines
LOCAL_DIR=/home/****/sync/test/ # dir on MY SERVER
REMOTE_HOST=***.********.org
REMOTE_DIR=/home/****/test # dir on MY LAPTOP (client)
SSH_PORT=****
The client is my laptop where i'm working, and the server is where
i won't touch the files.
For now, the only thing that works is when I launch /usr/local/bin/
lipsync
(the cron command), all my files on my laptop are removed.
I don't manage to send file from my client (laptop) to my server. Im
guessing
that it's because it can't use my ssh key that need a passphrase but
i'm not sure
cause i don't see that in the log.
The log file tells me this :
Mon May 02 19:23:02 2011 Cron: updated
kim.bacardi55.org -> arch55
Mon May 02 19:23:33 2011 Daemon: lipsyncd is stopping
2011/05/02 19:24:02 [24125] receiving file list
2011/05/02 19:24:02 [24135] Number of files: 1
2011/05/02 19:24:02 [24135] Number of files transferred: 0
2011/05/02 19:24:02 [24135] Total file size: 0 bytes
2011/05/02 19:24:02 [24135] Total transferred file size: 0 bytes
2011/05/02 19:24:02 [24135] Literal data: 0 bytes
2011/05/02 19:24:02 [24135] Matched data: 0 bytes
2011/05/02 19:24:02 [24135] File list size: 36
2011/05/02 19:24:02 [24135] File list generation time: 0.001 seconds
2011/05/02 19:24:02 [24135] File list transfer time: 0.000 seconds
2011/05/02 19:24:02 [24135] Total bytes sent: 11
2011/05/02 19:24:02 [24135] Total bytes received: 50
2011/05/02 19:24:02 [24135] sent 11 bytes received 50 bytes 40.67
bytes/sec
2011/05/02 19:24:02 [24135] total size is 0 speedup is 0.00
Mon May 02 19:24:02 2011 Cron: updated
kim.bacardi55.org -> arch55
(/var/log/lipsyncd is empty)
I hope that this is helpful!
If you need any other details, don't hesitate :)
--
bacardi55