kardianos / service

Run go programs as a service on major platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

freebsd: service failed to install

cuonglm opened this issue · comments

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.