Services in Nexenta are handled using solaris SMF. This makes it very easy to start and stop services, and you dont have to worry about its dependencies on other services, all of which is taken care for your.
Read it here
dh_installsmf is one of Nexentas addition to Debians debhelper scripts. This makes it trivial to add SMF support in a debian package that installs a service at /etc/init.d/
Well take a look at how we can add support to such a package.