aboutsummaryrefslogtreecommitdiffsponsor
path: root/contrib/slackbuild/rc.mirror
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/slackbuild/rc.mirror')
-rw-r--r--contrib/slackbuild/rc.mirror9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/slackbuild/rc.mirror b/contrib/slackbuild/rc.mirror
index 80b68da..28a1d2f 100644
--- a/contrib/slackbuild/rc.mirror
+++ b/contrib/slackbuild/rc.mirror
@@ -28,6 +28,10 @@ mirror_stop() {
/usr/bin/daemon --name=mirror --pidfiles=/run/mirror --stop
}
+mirror_reload() {
+ /usr/bin/daemon --name=mirror --pidfiles=/run/mirror --signal=hup
+}
+
mirror_status() {
/usr/bin/daemon --name=mirror --pidfiles=/run/mirror --running --verbose
}
@@ -39,10 +43,13 @@ start)
stop)
mirror_stop
;;
+reload)
+ mirror_reload
+ ;;
status)
mirror_status
;;
*)
- echo "Usage: $0 {start|stop|status}"
+ echo "Usage: $0 {start|stop|reload|status}"
exit 1
esac