summaryrefslogtreecommitdiff
path: root/cmd/podman/utils/signals_linux.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-08-12 19:10:16 -0400
committerQi Wang <qiwan@redhat.com>2020-08-18 14:42:49 -0400
commit5b02b69ea81deb06d5dc0acf2005cb3dbb496d4a (patch)
treee858d97cd35474214764a9936e249272bd8933b2 /cmd/podman/utils/signals_linux.go
parentc1fef2af3ec84b2d9cb27bf3cad9f8414552a3a9 (diff)
downloadpodman-5b02b69ea81deb06d5dc0acf2005cb3dbb496d4a.tar.gz
podman-5b02b69ea81deb06d5dc0acf2005cb3dbb496d4a.tar.bz2
podman-5b02b69ea81deb06d5dc0acf2005cb3dbb496d4a.zip
Support sighup reload configuration files
Support podman service sighup reload configuration files(containers.conf, registries.conf, storage.conf). Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/utils/signals_linux.go')
-rw-r--r--cmd/podman/utils/signals_linux.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/podman/utils/signals_linux.go b/cmd/podman/utils/signals_linux.go
new file mode 100644
index 000000000..f0a14aff0
--- /dev/null
+++ b/cmd/podman/utils/signals_linux.go
@@ -0,0 +1,14 @@
+// +build !windows
+
+package utils
+
+import (
+ "os"
+
+ "golang.org/x/sys/unix"
+)
+
+// Platform specific signal synonyms
+var (
+ SIGHUP os.Signal = unix.SIGHUP
+)