File: smoke

package info (click to toggle)
firewalld 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 28,900 kB
  • sloc: sh: 242,081; python: 29,155; xml: 13,238; makefile: 929
file content (21 lines) | stat: -rwxr-xr-x 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

# Give firewalld some time to settle
sleep 15

if ! systemctl -q is-active firewalld ; then
	journalctl -u firewalld
	exit 1
fi

systemctl status firewalld

# Test if a basic command like --state works
firewall-cmd --state

# We don't want any warnings or errors in the log
if systemctl status firewalld | grep -q -E "(ERROR|WARNING)" ; then
	exit 1
fi