I'm trying to add a bacula-fd (client) to freenas and hitting a few snags. Mostly, I expect, due to my n00bish status with freenas.
* So, I mounted / read-write and did pkg_add bacula-fd - this worked.
* When I tried to remount (mount -fr /) read-only, the samba processes all died and I solved this by a reboot.
* After reboot, the config file I had placed in /etc/local was gone, as was the init file and the bacula_client_enable="YES" I added to "enable" bacula-client.
* HOWEVER, after said reboot, I placed a bacula-fd.conf file in a r/w location, created /var/db/bacula/ and started the bacula-fd manually (bacula-fd -c CONFIG-FILE) and it is working as expected (as in I am running a backup against it as I type.)
Clearly I am not up on how to add services to freenas installs.
Quesions:
1) what did I do wrong that caused the samba processes to die after a remount read-only?
2) while in r/w mode, where should I place the config file, the init script, the enable flag for said script, and the directory /var/db/bacula in order to make them persistant?
3) what do I need to do to make sure the service starts after a reboot?
4) I realize there is a plugin, though it appears to be in beta - which makes me a bit nervous :) If it is recommended to I use the plugin, so be it, but then the question is how to remove the bacula-fd I installed manually.
Thanks - Yossie
* So, I mounted / read-write and did pkg_add bacula-fd - this worked.
* When I tried to remount (mount -fr /) read-only, the samba processes all died and I solved this by a reboot.
* After reboot, the config file I had placed in /etc/local was gone, as was the init file and the bacula_client_enable="YES" I added to "enable" bacula-client.
* HOWEVER, after said reboot, I placed a bacula-fd.conf file in a r/w location, created /var/db/bacula/ and started the bacula-fd manually (bacula-fd -c CONFIG-FILE) and it is working as expected (as in I am running a backup against it as I type.)
Clearly I am not up on how to add services to freenas installs.
Quesions:
1) what did I do wrong that caused the samba processes to die after a remount read-only?
2) while in r/w mode, where should I place the config file, the init script, the enable flag for said script, and the directory /var/db/bacula in order to make them persistant?
3) what do I need to do to make sure the service starts after a reboot?
4) I realize there is a plugin, though it appears to be in beta - which makes me a bit nervous :) If it is recommended to I use the plugin, so be it, but then the question is how to remove the bacula-fd I installed manually.
Thanks - Yossie