net/siproxd: use NAME_setup

PR: https://github.com/opnsense/core/issues/5917
This commit is contained in:
Franco Fichtner
2022-10-21 09:59:58 +02:00
parent 596b8762c2
commit d3b7d342d6
3 changed files with 8 additions and 8 deletions
@@ -46,7 +46,7 @@ class ServiceController extends ApiControllerBase
public function showregistrationsAction()
{
$backend = new Backend();
$response = $backend->configdRun("siproxd show-registrations");
$response = $backend->configdRun('siproxd registrations');
return array("response" => $response);
}
@@ -1,29 +1,29 @@
[start]
command:/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh;/usr/local/etc/rc.d/siproxd start
command:/usr/local/etc/rc.d/siproxd start
parameters:
type:script
message:starting Siproxd
[stop]
command:/usr/local/etc/rc.d/siproxd stop; exit 0
command:/usr/local/etc/rc.d/siproxd stop
parameters:
type:script
message:stopping Siproxd
[restart]
command:/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh;/usr/local/etc/rc.d/siproxd restart
command:/usr/local/etc/rc.d/siproxd restart
parameters:
type:script
message:restarting Siproxd
[status]
command:/usr/local/etc/rc.d/siproxd status;exit 0
command:/usr/local/etc/rc.d/siproxd status; exit 0
parameters:
type:script_output
message:request Siproxd status
[show-registrations]
[registrations]
command:/bin/cat /var/lib/siproxd/siproxd_registrations
parameters:
type:script_output
message: Show registered devices
message:show registered devices
@@ -1,5 +1,5 @@
{% if helpers.exists('OPNsense.siproxd.general.enabled') and OPNsense.siproxd.general.enabled == '1' %}
siproxd_var_script="/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh"
siproxd_setup="/usr/local/opnsense/scripts/OPNsense/Siproxd/setup.sh"
siproxd_enable="YES"
{% else %}
siproxd_enable="NO"