541
Development and Code Review / Re: Find api URLs
« on: May 12, 2016, 10:26:32 pm »
Hi vupibi,
There is a script available to restart most of the legacy services (/usr/local/etc/rc.reload_all), but that won't restart all, you probably better create your own script if you want to use the software this way.
Good inspirations can be found in the bootup script (/usr/local/etc/rc.bootup), depending on your needs you can find most of the configure commands in there.
For new code, we try to follow the rc system more closely (regular service commands) and detach user input / validation from config generation using templates.
Using the data without the interface is a bit tricky, you always have to follow the developments closely to keep your code compatible with original product and be very careful when upgrading.
Best regards,
Ad
(p.s. pfSense is that other project.... your using OPNsense )
There is a script available to restart most of the legacy services (/usr/local/etc/rc.reload_all), but that won't restart all, you probably better create your own script if you want to use the software this way.
Good inspirations can be found in the bootup script (/usr/local/etc/rc.bootup), depending on your needs you can find most of the configure commands in there.
For new code, we try to follow the rc system more closely (regular service commands) and detach user input / validation from config generation using templates.
Using the data without the interface is a bit tricky, you always have to follow the developments closely to keep your code compatible with original product and be very careful when upgrading.
Best regards,
Ad
(p.s. pfSense is that other project.... your using OPNsense )