'use strict';
'require fs';
'require ui';

return L.view.extend({
	render: function() {
		var m, s, o;

        // we only really care about the return code...
		var cmd = 'pidof output-statsd.lua 2>&1 > /dev/null && echo "true"'

		fs.exec(cmd, [ 'blah' ]).then(function(res) {
            var myjs = {
                "friendly_name": "StatsD live stream exporter",
                "expect_bridge": false,
                "expect_process": true,
                "process": res
            };
            return myjs;
		});
	}
});