#!/bin/bash

function test()
{
        ret=`systemctl |grep active|grep service|grep vsftpd`
        #echo $ret
		#$ret is not null
		if [[ -n "$ret" ]];then
			echo 1
		else
			echo 0
		fi

}
test





