Use exec to start main processes

This commit is contained in:
Kelvin Chen 2016-10-12 18:29:33 -04:00
parent 33817a2ab7
commit 12947572c7
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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