[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coldsync-hackers] Network coldsync
- To: coldsync-hackers at lusars dot net
- Subject: [coldsync-hackers] Network coldsync
- From: "Brian Johnson" <bjohnson at jecinc dot on.ca>
- Date: Thu, 01 Aug 2002 18:42:35 +0000
- Reply-To: coldsync-hackers at lusars dot net
- Sender: owner-coldsync-hackers at lusars dot net
Here is a script that I whipped up that checks whether a network coldsync daemon is
running and if one isn't, it starts one
Make it part of a cron job to run every minute to automagically reset a network hotsync
It shouldn't interfere with a local hotsync run from /etc/inittab
#!/bin/sh
# This starts the network
# coldsync daemon if it isn't already running
pstree | grep coldsync
if [ "$?" = "0" ]; then
echo Coldsync already running ... not restarting
else
echo Starting coldsync
/usr/local/bin/coldsync -p . -s -t net -dsync:3 -dmisc:1 -l /var/log/coldsync.net
-md - &
fi
--
This message was sent through the coldsync-hackers mailing list. To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body. For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.