From 12947572c7a5e8d9489ec9e7504e4238d37d6d49 Mon Sep 17 00:00:00 2001 From: Kelvin Chen Date: Wed, 12 Oct 2016 18:29:33 -0400 Subject: [PATCH] Use exec to start main processes --- Dockerfiles/openvpn/init | 2 +- Dockerfiles/plex/init | 2 +- Dockerfiles/rtorrent/init | 2 +- Dockerfiles/syncthing/init | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfiles/openvpn/init b/Dockerfiles/openvpn/init index 6eb7e27..e3884f5 100755 --- a/Dockerfiles/openvpn/init +++ b/Dockerfiles/openvpn/init @@ -25,4 +25,4 @@ fi iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE -openvpn /config/openvpn/openvpn.conf +exec openvpn /config/openvpn/openvpn.conf diff --git a/Dockerfiles/plex/init b/Dockerfiles/plex/init index a62f893..54775b5 100755 --- a/Dockerfiles/plex/init +++ b/Dockerfiles/plex/init @@ -10,4 +10,4 @@ mkdir -p "/config/Plex Media Server/" cp -n /Preferences.xml "/config/Plex Media Server/" rm -f "/config/Plex Media Server/plexmediaserver.pid" -start_pms > /dev/null 2>&1 +exec start_pms > /dev/null 2>&1 diff --git a/Dockerfiles/rtorrent/init b/Dockerfiles/rtorrent/init index 6f29535..bc4c145 100755 --- a/Dockerfiles/rtorrent/init +++ b/Dockerfiles/rtorrent/init @@ -13,4 +13,4 @@ rm -f /config/rtorrent/rtorrent.lock mkdir -p /config/rutorrent/settings /config/rutorrent/torrents \ /config/rutorrent/users /config/rutorrent/plugins -supervisord -c /supervisord.conf +exec supervisord -c /supervisord.conf diff --git a/Dockerfiles/syncthing/init b/Dockerfiles/syncthing/init index f19e08a..d5ef01b 100755 --- a/Dockerfiles/syncthing/init +++ b/Dockerfiles/syncthing/init @@ -4,4 +4,4 @@ mkdir -p /config/syncthing cp -n /config.xml /config/syncthing -syncthing -home /config/syncthing -no-browser >> /dev/null 2>&1 +exec syncthing -home /config/syncthing -no-browser >> /dev/null 2>&1