aboutsummaryrefslogtreecommitdiff
path: root/system/webmin/reload.new
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 09:08:45 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 09:13:42 +0700
commitfb70acbb6420f3f1e57a23fa0768f0580f968f9c (patch)
tree5a183f5c328108586bf1f2ff2f7102d6385581f3 /system/webmin/reload.new
parenta4cd3b4dce4ac81f7109262805402b5bdd737764 (diff)
system/webmin: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/webmin/reload.new')
-rw-r--r--system/webmin/reload.new4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/webmin/reload.new b/system/webmin/reload.new
new file mode 100644
index 0000000000..a345c0c1ee
--- /dev/null
+++ b/system/webmin/reload.new
@@ -0,0 +1,4 @@
+#!/bin/sh
+echo Reloading Webmin server in /usr/libexec/webmin
+pidfile=`grep "^pidfile=" /etc/webmin/miniserv.conf | sed -e 's/pidfile=//g'`
+kill -USR1 `cat $pidfile`