From 02941c46ad8d5cdec6df1ba5ec6a8b7b4f9b976c Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 25 Oct 2024 20:45:13 +0200 Subject: [PATCH] Fix service problems --- net-mgmt/opnarplog/Makefile | 1 - .../service/conf/actions.d/actions_opnarplog.conf | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/net-mgmt/opnarplog/Makefile b/net-mgmt/opnarplog/Makefile index fa5cc3f2f77..f722edb3433 100644 --- a/net-mgmt/opnarplog/Makefile +++ b/net-mgmt/opnarplog/Makefile @@ -2,7 +2,6 @@ PLUGIN_NAME= OPNarplog PLUGIN_VERSION= 0.1 PLUGIN_REVISION= 1 PLUGIN_COMMENT= arpwatch alternative for OPNsense -PLUGIN_DEPENDS= OPNarplog PLUGIN_MAINTAINER= github.com/mr-manuel .include "../../Mk/plugins.mk" diff --git a/net-mgmt/opnarplog/src/opnsense/service/conf/actions.d/actions_opnarplog.conf b/net-mgmt/opnarplog/src/opnsense/service/conf/actions.d/actions_opnarplog.conf index 57fb32a8acc..06ab31f5cdf 100644 --- a/net-mgmt/opnarplog/src/opnsense/service/conf/actions.d/actions_opnarplog.conf +++ b/net-mgmt/opnarplog/src/opnsense/service/conf/actions.d/actions_opnarplog.conf @@ -1,29 +1,29 @@ [start] -command:/usr/local/bin/bash /usr/local/etc/rc.d/opnarplog start +command:service opnarplog start parameters: type:script message:starting OPNarplog [stop] -command:/usr/local/bin/bash /usr/local/etc/rc.d/opnarplog stop +command:service opnarplog stop parameters: type:script message:stopping OPNarplog [restart] -command:/usr/local/bin/bash /usr/local/etc/rc.d/opnarplog restart +command:service opnarplog restart parameters: type:script message:restarting OPNarplog [status] -command:/usr/local/bin/bash /usr/local/etc/rc.d/opnarplog status;exit 0 +command:service opnarplog status;exit 0 parameters: type:script_output message:request OPNarplog status [resetdb] -command:rm -f /var/db/opnarplog/opnarplog.db +command:rm -f /var/db/opnarplog/opnarplog.db; echo "`date '+%Y-%m-%d_%H:%M:%S,000'`: database reset" >> /var/log/opnarplog.log parameters: type:script message:reset database