diff options
author | Slack Coder <slackcoder@server.ky> | 2024-10-21 09:16:02 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-10-21 09:16:02 -0500 |
commit | 937aa1ba188df0355ac9023c70b0fdac6eb618e9 (patch) | |
tree | 41e24227849a296f2d73e4dae05c7a29bcc75091 | |
parent | bced42d3edbce3059a97e4f9229380dfcb9e5f5e (diff) | |
download | mirror-937aa1ba188df0355ac9023c70b0fdac6eb618e9.tar.xz |
slackbuild rc script
-rw-r--r-- | contrib/slackbuild/rc.mirror | 9 |
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 |