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

15 lines
277 B
Plaintext
Raw Normal View History

2014-04-29 01:12:18 +01:00
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))"
2014-04-29 01:12:18 +01:00
if [ -n "$pids" ]; then
kill $pids
fi
}