Luaposix getopt for positional arguments

This commit is contained in:
gSpot
2025-02-06 18:55:57 +03:00
parent c20703d5be
commit 90b711f55e
8 changed files with 82 additions and 64 deletions

View File

@@ -10,7 +10,7 @@ run_instance() {
config_get enabled "$1" enabled "0"
if [ $enabled = "1" ]; then
procd_open_instance "$1"
procd_set_param command "$PROG" "nodaemon" "$1"
procd_set_param command "$PROG" "-a" "nodaemon" "-i" "$1"
procd_close_instance
fi
}
@@ -24,7 +24,7 @@ start_service() {
}
stop_service() {
$PROG stop
$PROG -a stop
}
reload_service() {