Title: [opsview] [13201] It won't call bash, make it dash compatible instead.
- Revision
- 13201
- Author
- pknight
- Date
- 2013-08-09 14:43:17 +0100 (Fri, 09 Aug 2013)
Log Message
It won't call bash, make it dash compatible instead.
Modified Paths
Modified: trunk/opsview-web/installer/opsview-web-upstart.conf
===================================================================
--- trunk/opsview-web/installer/opsview-web-upstart.conf 2013-08-09 13:40:16 UTC (rev 13200)
+++ trunk/opsview-web/installer/opsview-web-upstart.conf 2013-08-09 13:43:17 UTC (rev 13201)
@@ -11,8 +11,7 @@
respawn limit 2 5
pre-start script
- bash -- <<EOS
- if [[ ! $( pgrep -x '(nagios|opsviewd|rc.opsview)' ) ]]; then
+ if ! ( pgrep -x '(nagios|opsviewd|rc.opsview)' > /dev/null ); then
echo "Opsview needs to be running" >> /var/log/opsview/upstart
exit 1
fi
_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins