Make use of name vs RC_SVCNAME consistent in supervisor scripts

This fixes #79.
This commit is contained in:
William Hubbs
2016-09-13 12:27:08 -05:00
parent ac53c9a658
commit 8a8032478a
4 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ runit_start()
ebegin "Starting ${name:-$RC_SVCNAME}"
ln -snf "${service_path}" "${service_link}"
sv start "${service_link}" > /dev/null 2>&1
eend $? "Failed to start $RC_SVCNAME"
eend $? "Failed to start ${name:-$RC_SVCNAME}"
}
runit_stop()
@@ -36,7 +36,7 @@ runit_stop()
ebegin "Stopping ${name:-$RC_SVCNAME}"
sv stop "${service_link}" > /dev/null 2>&1 &&
rm "${service_link}"
eend $? "Failed to stop $RC_SVCNAME"
eend $? "Failed to stop ${name:-$RC_SVCNAME}"
}
runit_status()