# /etc/init.d/foo:
use Ubic::Run; # proxy to 'foo' ubic service
# Or, if you want to rename the service or bind the service containing dots in its name:
# /etc/init.d/foo-bar:
use Ubic::Run qw(foo.bar); # proxy to 'foo.bar' ubic service

If your system doesn't conform to cases listed in description, you'll have to set the service name in import parameters.

Note that you usually don't want to use SysV-style rcX.d runlevel symlinks, because Ubic remembers if service should be running by other means (by storing status files in /var/lib/ubic/status/), ubic.watchdog brings all enabled services up in one minute after reboot, and usually it's all you need anyway. See "How is ubic compatible with SysV-style /etc/rcX.d/ symlinks?" in Ubic::Manual::FAQ for more details in this topic.