File: daemon

package info (click to toggle)
exim4 4.84-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 13,316 kB
  • sloc: ansic: 94,930; sh: 4,216; xml: 2,046; makefile: 585; perl: 557; python: 109
file content (13 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#--------------
# Testing exim4
#--------------
set -e
DAEMON=exim4

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