filesystem: added sync-digest-clean script.

This commit is contained in:
Ricardo Martins 2014-04-29 02:12:14 +01:00
parent d3fffebd36
commit f3c4d8a793
2 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@ start()
stop()
{
pids="$(echo $(ps | grep /sbin/sync-digest | grep -v grep | cut -f1 -dr))"
pids="$(echo $(ps | grep '/sbin/sync-digest ' | grep -v grep | cut -f1 -dr))"
if [ -n "$pids" ]; then
kill $pids
fi

View File

@ -0,0 +1,6 @@
#! /bin/sh
/sbin/services sync-digest stop
sleep 10
rm -rf /opt/lsts/sync
/sbin/services sync-digest start