Changes of Revision 11
[-] [+] | Changed | vsftpd.init |
@@ -56,12 +56,15 @@ chown ftpsecure:nogroup /var/run/vsftpd || : function writePidFile() { - conf=${1} - confname=`basename $conf .conf` - if [ "${confname}" == ".conf" ] ; then - confname="vsftpd" - fi - echo ${2} > /var/run/vsftpd/${confname}.pid + if [ $# == 2 ] ; then + conf="${1}" + confname=`basename $conf .conf` + pid=${2} + else + confname="vsftpd" + pid=${1} + fi + echo "${pid}" > /var/run/vsftpd/${confname}.pid } function getPidFileFromConf() { |