kardianos / service

Run go programs as a service on major platforms.
zlib License
4.45k stars 678 forks source link

freebsd: service failed to install #359

Closed cuonglm closed 1 year ago

cuonglm commented 1 year ago

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.