Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
oVirt
:
3.3.2
>
ovirt-guest-agent
> ovirt-guest-agent_suse-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ovirt-guest-agent_suse-init.patch of Package ovirt-guest-agent
--- ovirt-guest-agent/ovirt-guest-agent.in.orig 2013-12-15 19:48:58.552399781 +0100 +++ ovirt-guest-agent/ovirt-guest-agent.in 2013-12-15 19:55:23.595154575 +0100 @@ -8,8 +8,25 @@ # config: /etc/ovirt-guest-agent.conf # pidfile: /var/run/ovirt-guest-agent.pid +### BEGIN INIT INFO +# Provides: ovirt-guest-agent +# Required-Start: $syslog $remote_fs +# Should-Start: $time ypbind smtp +# Required-Stop: $syslog $remote_fs +# Should-Stop: $null +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: oVirt agent +# Description: Startup/shutdown script for the oVirt agent. +### END INIT INFO + # Source function library. +if [ -f /etc/rc.d/init.d/functions ] ; then . /etc/rc.d/init.d/functions +fi +if [ -f /etc/rc.status ] ; then +. /etc/rc.status +fi agentd=/usr/share/ovirt-guest-agent/ovirt-guest-agent.py prog=ovirt-guest-agent @@ -36,7 +53,11 @@ /bin/chown ovirtagent:ovirtagent ${pidfile} [ -x /sbin/restorecon ] && /sbin/restorecon ${pidfile} fi - daemon --pidfile=${pidfile} --user=ovirtagent $agentd -p ${pidfile} -d $OPTIONS + if [ -f /etc/redhat-release ] ; then + daemon --pidfile=${pidfile} --user=ovirtagent $agentd -p ${pidfile} -d $OPTIONS + elif [ -f /etc/SuSE-release ] ; then + startproc -p ${pidfile} -u ovirtagent $agentd -p ${pidfile} -d $OPTIONS + fi RETVAL=$? [ $RETVAL -eq 0 ] && touch $lockfile echo