luci-app-ocserv: restart service on user add/remove
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 26 Jul 2014 08:29:56 +0000 (10:29 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 26 Jul 2014 08:30:01 +0000 (10:30 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
net/luci-app-ocserv/files/usr/lib/lua/luci/model/cbi/ocserv/users.lua

index 0a4a6786cb3a76835fd6fc030c81b955cd3ecd12..35c20fc6486711938dfeefd141fe022899e8153d 100644 (file)
@@ -22,7 +22,7 @@ if m.uci:get("ocserv", "config", "auth") == "plain" then
 --[[Users]]--
 
 function m.on_commit(map)
-       luci.sys.call("/usr/bin/occtl reload  >/dev/null 2>&1")
+       luci.sys.call("/etc/init.d/ocserv restart >/dev/null 2>&1")
 end
 
 s = m:section(TypedSection, "ocservusers", translate("Available users"))