The (*freebsdService).Install method uses os.Create to create config file. However, if /usr/local/etc/rc.d/ does not exist, for example, on 12.04-stable, os.Create will fail.
If I create the directory manually, then the Service.Install run sucessfully.
The
(*freebsdService).Install
method usesos.Create
to create config file. However, if/usr/local/etc/rc.d/
does not exist, for example, on 12.04-stable,os.Create
will fail.If I create the directory manually, then the
Service.Install
run sucessfully.