Fix spectrum2 init script
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/sbin/runscript
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
@@ -23,3 +23,17 @@ stop() {
|
||||
--exec /usr/bin/spectrum2_manager stop 1>>$LOGFILE 2>&1
|
||||
eend $?
|
||||
}
|
||||
|
||||
status() {
|
||||
local _retval
|
||||
einfon ""
|
||||
/usr/bin/spectrum2_manager status &> /dev/null
|
||||
_retval=$?
|
||||
if [ x${_retval} = 'x0' ]; then
|
||||
mark_service_started "${SVCNAME}"
|
||||
eend 0
|
||||
else
|
||||
mark_service_stopped "${SVCNAME}"
|
||||
eend 3
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user