diff options
author | Slack Coder <slackcoder@server.ky> | 2024-10-21 09:08:28 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-10-21 09:08:28 -0500 |
commit | bced42d3edbce3059a97e4f9229380dfcb9e5f5e (patch) | |
tree | c2e2849a5b167201c86d28304bcc73cbfc36cd12 /contrib | |
parent | dd3d5cfc0014e5f7ce529602cac09a1de41bdc3d (diff) | |
download | mirror-bced42d3edbce3059a97e4f9229380dfcb9e5f5e.tar.xz |
SlackBuild: Update rc script
Prepend service name to bash functions.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/slackbuild/rc.mirror | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/slackbuild/rc.mirror b/contrib/slackbuild/rc.mirror index 362a3f1..80b68da 100644 --- a/contrib/slackbuild/rc.mirror +++ b/contrib/slackbuild/rc.mirror @@ -11,7 +11,7 @@ create_run_dir() { fi } -start() { +mirror_start() { echo "Starting Mirror service" create_run_dir @@ -23,24 +23,24 @@ start() { -- mirror } -stop() { +mirror_stop() { echo "Stopping Mirror service" /usr/bin/daemon --name=mirror --pidfiles=/run/mirror --stop } -status() { +mirror_status() { /usr/bin/daemon --name=mirror --pidfiles=/run/mirror --running --verbose } case "$1" in start) - start + mirror_start ;; stop) - stop + mirror_stop ;; status) - status + mirror_status ;; *) echo "Usage: $0 {start|stop|status}" |