Fix spectrum2 init script

This commit is contained in:
Sergey Morozov
2016-11-26 03:18:09 +03:00
parent cc1b2926fb
commit 2f3dcb9699
2 changed files with 16 additions and 2 deletions

View File

@@ -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
}