disable SIGHUP restart behavior in foreground

SIGHUP should only be a restart action for a daemonized processs,
when used on a console process SIGHUP should == SIGTERM. Add
detection for whether this service is actually daemonized.

Change-Id: I2a73d3872a302fcfac1a6ee844a44faa9569b3dd
Fixes-Bug: #1263122
Merge "disable SIGHUP restart behavior in foreground"