projects
/
cloudstore.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move create_user to perl API
[cloudstore.git]
/
rsync-start-server.sh
diff --git
a/rsync-start-server.sh
b/rsync-start-server.sh
index
a0c61f5
..
693f2a3
100755
(executable)
--- a/
rsync-start-server.sh
+++ b/
rsync-start-server.sh
@@
-1,7
+1,13
@@
#!/bin/sh -x
test -d var || mkdir var
#!/bin/sh -x
test -d var || mkdir var
+rm -fv var/rsyncd.log
+mkfifo var/rsyncd.log
+
test -d blob/dpavlin || mkdir -p blob/dpavlin
chmod 1777 blob/dpavlin/
test -d blob/dpavlin || mkdir -p blob/dpavlin
chmod 1777 blob/dpavlin/
+# restart server or start new one
+test -f var/rsyncd.pid && cat var/rsyncd.pid | xargs sudo kill || \
sudo rsync --daemon --config rsyncd.conf --no-detach --port=6501 # --verbose -vvvv
sudo rsync --daemon --config rsyncd.conf --no-detach --port=6501 # --verbose -vvvv
+