summaryrefslogtreecommitdiffstats
path: root/debian/tests/daemon
blob: b19a90c9b36cfcb046d8595e02c1444072412c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#-------------------
# Testing freeradius
#-------------------
set -e
DAEMON=freeradius

ln -s /etc/freeradius/3.0/sites-available/control-socket /etc/freeradius/3.0/sites-enabled/control-socket
service freeradius restart

if pidof -x $DAEMON > /dev/null; then
    echo "OK"
else
    echo "ERROR: ${DAEMON} IS NOT RUNNING"
    exit 1
fi

radmin -e "show version"