This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/filesystem/fs/etc/rc.d/sync-digest
2014-04-29 01:12:18 +01:00

15 lines
274 B
Plaintext

start()
{
for peer in $cfg_sync_digest_peers; do
/sbin/sync-digest "$peer" < /dev/null > /dev/null 2>&1 &
done
}
stop()
{
pids="$(echo $(ps | grep /sbin/sync-digest | grep -v grep | cut -f1 -dr))"
if [ -n "$pids" ]; then
kill $pids
fi
}