diff --git a/rules/filesystem/fs/etc/rc.d/sync-digest b/rules/filesystem/fs/etc/rc.d/sync-digest index 25d8b0c..96bd5e8 100644 --- a/rules/filesystem/fs/etc/rc.d/sync-digest +++ b/rules/filesystem/fs/etc/rc.d/sync-digest @@ -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 diff --git a/rules/filesystem/fs/sbin/sync-digest-clean b/rules/filesystem/fs/sbin/sync-digest-clean new file mode 100755 index 0000000..bfccd5c --- /dev/null +++ b/rules/filesystem/fs/sbin/sync-digest-clean @@ -0,0 +1,6 @@ +#! /bin/sh + +/sbin/services sync-digest stop +sleep 10 +rm -rf /opt/lsts/sync +/sbin/services sync-digest start