File: daemon

package info (click to toggle)
gdnsd 3.8.3-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,584 kB
  • sloc: ansic: 30,669; sh: 4,872; perl: 1,047; makefile: 401; pascal: 108
file content (12 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

if pidof -x gdnsd > /dev/null; then
    echo "OK: gdnsd process running"
    # the following exits non-zero if the daemon can't be reached
    gdnsdctl status 2>&1
else
    echo "ERROR: gdnsd is not running"
    exit 1
fi