Untitled

Pasted by karlp on Mon Nov 23 15:42:14 2020 UTC as JavaScript
'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;
		});
	}
});