Skip to content

Commit 83e733d

Browse files
authored
1 parent 28e5384 commit 83e733d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/v-update-sys-rrd-ftp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ if [ "$period" = 'daily' ]; then
7575
a=0
7676
a=$(ps aux | grep "$FTP_SYSTEM" | grep -v grep | grep -v nobody \
7777
| grep -v root | wc -l)
78-
78+
if [ "$FTP_SYSTEM" = 'proftpd' ]; then
79+
# Decrease numeber of connnections by 1 for proftpd ps aux always returns 1
80+
a=$((a - 1))
81+
fi
7982
# Updating rrd database
8083
rrdtool update $RRD/ftp/ftp.rrd N:$a
8184
fi

0 commit comments

Comments
 (0)