sync oslo service to fix SIGHUP handling
sync oslo service to fix SIGHUP handling

this is a sync of the oslo service code to fix a bug found in
the sighup handling. Previously it was not possible to use
devstack's unstack.sh because the service module would always
restart under a SIGHUP, not only when the process was running as
a service. SIGHUP on a non-detached process should act like
SIGTERM. This change fixes that.

Change-Id: Ib260d82519fde5c5cb24a2c0c8a7cccd0b96b84f
Related-Bug: #1263122

leilihh/novaha,CiscoSystems/nova,eayunstack/nova,cernops/nova,blueboxgroup/nova,Tehsmash/nova,klmitch/nova,sacharya/nova,devendermishrajio/nova,leilihh/nova,thomasem/nova,saleemjaveds/https-github.com-openstack-nova,zaina/nova,openstack/nova,CCI-MOC/nova,jeffrey4l/nova,tianweizhang/nova,petrutlucian94/nova,Juniper/nova,shahar-stratoscale/nova,rrader/nova-docker-plugin,tealover/nova,hanlind/nova,badock/nova,klmitch/nova,rahulunair/nova,TwinkleChawla/nova,takeshineshiro/nova,alexandrucoman/vbox-nova-driver,TwinkleChawla/nova,raildo/nova,belmiromoreira/nova,rajalokan/nova,akash1808/nova_test_latest,eonpatapon/nova,kimjaejoong/nova,tianweizhang/nova,alvarolopez/nova,Stavitsky/nova,fnordahl/nova,eayunstack/nova,whitepages/nova,eonpatapon/nova,bigswitch/nova,CEG-FYP-OpenStack/scheduler,eharney/nova,vmturbo/nova,yatinkumbhare/openstack-nova,alvarolopez/nova,shail2810/nova,JioCloud/nova,vmturbo/nova,Francis-Liu/animated-broccoli,CloudServer/nova,barnsnake351/nova,zaina/nova,projectcalico/calico-nova,scripnichenko/nova,LoHChina/nova,Metaswitch/calico-nova,sebrandon1/nova,rajalokan/nova,vmturbo/nova,vladikr/nova_drafts,cyx1231st/nova,gooddata/openstack-nova,mmnelemane/nova,cernops/nova,orbitfp7/nova,angdraug/nova,NeCTAR-RC/nova,openstack/nova,CiscoSystems/nova,devendermishrajio/nova_test_latest,gooddata/openstack-nova,JianyuWang/nova,varunarya10/nova_test_latest,varunarya10/nova_test_latest,Francis-Liu/animated-broccoli,BeyondTheClouds/nova,silenceli/nova,openstack/nova,noironetworks/nova,edulramirez/nova,virtualopensystems/nova,sebrandon1/nova,CCI-MOC/nova,maelnor/nova,MountainWei/nova,mikalstill/nova,luogangyi/bcec-nova,petrutlucian94/nova_dev,orbitfp7/nova,iuliat/nova,zhimin711/nova,takeshineshiro/nova,projectcalico/calico-nova,ruslanloman/nova,thomasem/nova,JianyuWang/nova,nikesh-mahalka/nova,shahar-stratoscale/nova,dims/nova,watonyweng/nova,shail2810/nova,bigswitch/nova,cernops/nova,spring-week-topos/nova-week,badock/nova,tangfeixiong/nova,vladikr/nova_drafts,kimjaejoong/nova,Juniper/nova,alaski/nova,phenoxim/nova,joker946/nova,barnsnake351/nova,adelina-t/nova,mmnelemane/nova,felixma/nova,noironetworks/nova,akash1808/nova,OpenAcademy-OpenStack/nova-scheduler,Juniper/nova,zzicewind/nova,mgagne/nova,double12gzh/nova,angdraug/nova,devoid/nova,jianghuaw/nova,LoHChina/nova,sacharya/nova,nikesh-mahalka/nova,eharney/nova,tudorvio/nova,cloudbase/nova-virtualbox,dawnpower/nova,tudorvio/nova,CloudServer/nova,blueboxgroup/nova,devendermishrajio/nova,yosshy/nova,petrutlucian94/nova,whitepages/nova,scripnichenko/nova,akash1808/nova_test_latest,mandeepdhami/nova,affo/nova,bgxavier/nova,leilihh/novaha,petrutlucian94/nova_dev,felixma/nova,leilihh/nova,apporc/nova,JioCloud/nova,BeyondTheClouds/nova,j-carpentier/nova,watonyweng/nova,berrange/nova,BeyondTheClouds/nova,double12gzh/nova,ted-gould/nova,ted-gould/nova,virtualopensystems/nova,klmitch/nova,redhat-openstack/nova,hanlind/nova,belmiromoreira/nova,redhat-openstack/nova,ewindisch/nova,viggates/nova,OpenAcademy-OpenStack/nova-scheduler,joker946/nova,klmitch/nova,dims/nova,spring-week-topos/nova-week,Juniper/nova,phenoxim/nova,Metaswitch/calico-nova,fnordahl/nova,isyippee/nova,Stavitsky/nova,tanglei528/nova,JioCloud/nova_test_latest,zzicewind/nova,ewindisch/nova,rrader/nova-docker-plugin,mahak/nova,cloudbase/nova,silenceli/nova,cyx1231st/nova,jianghuaw/nova,devendermishrajio/nova_test_latest,mahak/nova,tealover/nova,mikalstill/nova,NeCTAR-RC/nova,jeffrey4l/nova,viggates/nova,mandeepdhami/nova,jianghuaw/nova,edulramirez/nova,alaski/nova,adelina-t/nova,luogangyi/bcec-nova,berrange/nova,zhimin711/nova,j-carpentier/nova,jianghuaw/nova,mahak/nova,JioCloud/nova_test_latest,tanglei528/nova,cloudbase/nova,affo/nova,raildo/nova,maelnor/nova,cloudbase/nova,CEG-FYP-OpenStack/scheduler,isyippee/nova,gooddata/openstack-nova,ruslanloman/nova,rajalokan/nova,mgagne/nova,vmturbo/nova,alexandrucoman/vbox-nova-driver,yatinkumbhare/openstack-nova,akash1808/nova,hanlind/nova,MountainWei/nova,iuliat/nova,gooddata/openstack-nova,rajalokan/nova,cloudbase/nova-virtualbox,Yusuke1987/openstack_template,Tehsmash/nova,saleemjaveds/https-github.com-openstack-nova,devoid/nova,Yusuke1987/openstack_template,yosshy/nova,dawnpower/nova,mikalstill/nova,rahulunair/nova,bgxavier/nova,apporc/nova,rahulunair/nova,tangfeixiong/nova,sebrandon1/nova