Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
qlvnictools
qlvnictools-initscript.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qlvnictools-initscript.patch of Package qlvnictools
From: Philipp Thomas <pth@suse.de> Date: September 5th 2012 /var/lock/subsys isn't used on openSUSE/SLES so use the /var/run/<progname>.pid file created by start_daemon. Index: qlgc_vnic =================================================================== --- qlgc_vnic.orig 2012-09-05 11:52:46.713212441 +0200 +++ qlgc_vnic 2012-09-05 12:10:58.601341857 +0200 @@ -92,48 +92,54 @@ if [ -f /etc/init.d/functions ]; then . /etc/init.d/functions elif [ -f /etc/rc.d/init.d/functions ] ; then . /etc/rc.d/init.d/functions -elif [[ -e /sbin/start_daemon && -e /sbin/killproc ]]; then +elif [[ -e /sbin/start_daemon && -e /sbin/killproc && -e /sbin/startproc ]]; then #This case is for SLES systems where we implement the functions #available in RHEL systems using the commands available on SLES. - daemon() + daemon() { - path=`which $1`; - dir=`dirname $path`; - dir=$dir"/"; - cmd=$dir${1+"$@"}; - /sbin/start_daemon $cmd - ret=$? - if [ $ret -eq 0 ]; then - echo_success - else - echo_failure - fi - return $ret - } + path=`which $1`; + dir=`dirname $path`; + dir=$dir"/"; + cmd=$dir${1+"$@"}; + /sbin/start_daemon $cmd + ret=$? + if [ $ret -eq 0 ]; then + echo_success + else + echo_failure + fi + return $ret + } - killproc() - { - path=`which $1`; - dir=`dirname $path`; - dir=$dir"/"; - cmd=$dir${1+"$@"}; - /sbin/killproc $cmd - ret=$? - if [ $ret -eq 0 ]; then - echo_success - else - echo_failure - fi - return $ret - } + killproc() + { + path=`which $1`; + dir=`dirname $path`; + dir=$dir"/"; + cmd=$dir${1+"$@"}; + /sbin/killproc $cmd + ret=$? + if [ $ret -eq 0 ]; then + echo_success + else + echo_failure + fi + return $ret + } #Implementing the subsys file part of RHEL status function status() { echo $1 - if [ -f /var/lock/subsys/$1 ]; then - return 2 - fi + if [ ! -f /etc/SuSE-release ]; then + pid_file=/var/lock/subsys/$1 + else + pid_file=/var/run/$1.pid + fi + if [ -f $pid_file ]; then + return 2 + fi + else } else echo "Supporting tools for starting daemon not present. QLogic Dynamic update daemon will not be started"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor