From bced42d3edbce3059a97e4f9229380dfcb9e5f5e Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 21 Oct 2024 09:08:28 -0500 Subject: SlackBuild: Update rc script Prepend service name to bash functions. --- contrib/slackbuild/rc.mirror | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'contrib') 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}" -- cgit v1.2.3