Skip to content

Commit

Permalink
Fix service problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Oct 25, 2024
1 parent f2b2b26 commit 02941c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion net-mgmt/opnarplog/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 02941c4

Please sign in to comment.