conf/fs.conf
author Tomas Zeman <tzeman@volny.cz>
Thu, 16 Aug 2018 14:39:42 +0200
changeset 34 b685225d4966
parent 27 e8cb759c60b4
permissions -rw-r--r--
conf/openssl.conf: Certificate expiration via network connect
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     1
# Filesystem related parameters
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     2
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     3
# Returns age of last modification time of file $1
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     4
UserParameter=file.age[*],expr `date +%s` - `stat -f %m $1`
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     5
16
8dd31c2c72a5 fs.conf: file.content
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
     6
# Returns file content
8dd31c2c72a5 fs.conf: file.content
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
     7
UserParameter=file.content[*],cat $1
8dd31c2c72a5 fs.conf: file.content
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
     8
1
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
     9
# Returns count of files in directory $1
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
    10
UserParameter=dir.files[*],ls $1|wc -l
29afbe10f498 Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff changeset
    11
7
0cd47f29bdfb fs.conf: bzip2.test
Tomas Zeman <tzeman@volny.cz>
parents: 1
diff changeset
    12
# Returns 0 if bzip2 test of file $1 passed.
0cd47f29bdfb fs.conf: bzip2.test
Tomas Zeman <tzeman@volny.cz>
parents: 1
diff changeset
    13
# Note: can't use just return code ($?) as bzip2 is too forgiving to corrupt archives.
0cd47f29bdfb fs.conf: bzip2.test
Tomas Zeman <tzeman@volny.cz>
parents: 1
diff changeset
    14
UserParameter=bzip2.test[*],bzip2 -q -t $1 2>&1|wc -l
26
48810ea292c2 conf/fs.conf: added file.cat
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
    15
48810ea292c2 conf/fs.conf: added file.cat
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
    16
# Returns file's content
48810ea292c2 conf/fs.conf: added file.cat
Tomas Zeman <tzeman@volny.cz>
parents: 7
diff changeset
    17
UserParameter=file.cat[*],cat $1