From 937aa1ba188df0355ac9023c70b0fdac6eb618e9 Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 21 Oct 2024 09:16:02 -0500 Subject: slackbuild rc script --- contrib/slackbuild/rc.mirror | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3