UNPKG

smf

Version:

Expose smf(5) to Node.js for Solaris/Illumos based operating systems

13 lines (10 loc) 282 B
#!/usr/bin/env node var svcs = require('../').svcs; svcs(function(err, services) { // services => list of fmri's on the system console.log(services); }); svcs('boot-archive', function(err, svc) { // svc => an associative array of service information console.log(svc); });