From 5eb1c87e4352604e26972af4dc166a268ae527bf Mon Sep 17 00:00:00 2001 From: EugeneBogush Date: Sat, 21 Mar 2020 22:34:09 +0200 Subject: [PATCH] fix for systemd reload (#393) * Update open5gs-hssd.service.in impleneted 'systemd reload ' open5gs-* * Update open5gs-mmed.service.in * Update open5gs-pcrfd.service.in * Update open5gs-pgwd.service.in * Update open5gs-sgwd.service.in --- configs/systemd/open5gs-hssd.service.in | 1 + configs/systemd/open5gs-mmed.service.in | 1 + configs/systemd/open5gs-pcrfd.service.in | 1 + configs/systemd/open5gs-pgwd.service.in | 1 + configs/systemd/open5gs-sgwd.service.in | 1 + 5 files changed, 5 insertions(+) diff --git a/configs/systemd/open5gs-hssd.service.in b/configs/systemd/open5gs-hssd.service.in index 1241b6df8..c4c8514d8 100644 --- a/configs/systemd/open5gs-hssd.service.in +++ b/configs/systemd/open5gs-hssd.service.in @@ -13,6 +13,7 @@ Restart=always ExecStart=@bindir@/open5gs-hssd -c @sysconfdir@/open5gs/hss.yaml RestartSec=2 RestartPreventExitStatus=1 +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/configs/systemd/open5gs-mmed.service.in b/configs/systemd/open5gs-mmed.service.in index aeafd326b..63d79e196 100644 --- a/configs/systemd/open5gs-mmed.service.in +++ b/configs/systemd/open5gs-mmed.service.in @@ -12,6 +12,7 @@ Restart=always ExecStart=@bindir@/open5gs-mmed -c @sysconfdir@/open5gs/mme.yaml RestartSec=2 RestartPreventExitStatus=1 +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/configs/systemd/open5gs-pcrfd.service.in b/configs/systemd/open5gs-pcrfd.service.in index b57b84ca1..fcff1a5af 100644 --- a/configs/systemd/open5gs-pcrfd.service.in +++ b/configs/systemd/open5gs-pcrfd.service.in @@ -13,6 +13,7 @@ Restart=always ExecStart=@bindir@/open5gs-pcrfd -c @sysconfdir@/open5gs/pcrf.yaml RestartSec=2 RestartPreventExitStatus=1 +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/configs/systemd/open5gs-pgwd.service.in b/configs/systemd/open5gs-pgwd.service.in index 31d2fae0c..05e2dfa40 100644 --- a/configs/systemd/open5gs-pgwd.service.in +++ b/configs/systemd/open5gs-pgwd.service.in @@ -13,6 +13,7 @@ Restart=always ExecStart=@bindir@/open5gs-pgwd -c @sysconfdir@/open5gs/pgw.yaml RestartSec=2 RestartPreventExitStatus=1 +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target diff --git a/configs/systemd/open5gs-sgwd.service.in b/configs/systemd/open5gs-sgwd.service.in index beb9614b0..12b705880 100644 --- a/configs/systemd/open5gs-sgwd.service.in +++ b/configs/systemd/open5gs-sgwd.service.in @@ -12,6 +12,7 @@ Restart=always ExecStart=@bindir@/open5gs-sgwd -c @sysconfdir@/open5gs/sgw.yaml RestartSec=2 RestartPreventExitStatus=1 +ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target