Skip to content

Commit

Permalink
Only install 9590 once
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Jul 30, 2018
1 parent b9c545e commit 7087e81
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fixes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ check process monitorix with pidfile /run/monitorix.pid

# Install 9590
# A simple listener on Port 9590 for documentation examples
cp /root/nems/nems-migrator/data/1.4/init.d/9590 /etc/init.d/
/usr/sbin/update-rc.d 9590 defaults
/usr/sbin/update-rc.d 9590 enable
/etc/init.d/9590 start
if [[ ! -f /etc/init.d/9590 ]]; then
cp /root/nems/nems-migrator/data/1.4/init.d/9590 /etc/init.d/
/usr/sbin/update-rc.d 9590 defaults
/usr/sbin/update-rc.d 9590 enable
/etc/init.d/9590 start
fi
# And add it to monit
if ! grep -q "NEMS00001" /etc/monit/conf.d/nems.conf; then
echo '# NEMS00001 9590
Expand Down

0 comments on commit 7087e81

Please sign in to comment.