<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>56659</bug_id>
          
          <creation_ts>2004-07-11 00:18 0000</creation_ts>
          <short_desc>drbd does not install a start stop script in /etc/init.d/</short_desc>
          <delta_ts>2005-01-19 10:42:43 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jeffrey@crawford.homeunix.net</reporter>
          <assigned_to>hp-cluster@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jeffrey@crawford.homeunix.net</who>
            <bug_when>2004-07-11 00:18:32 0000</bug_when>
            <thetext>After installing drbd I was unable to find a scipt that was in the gentoo format that allowed me to start and stop the driver part of the service. (datadisk in /etc/ha.d/resource.d/datadisk is present from heartbeat but it does not load the drvd driver)

Reproducible: Always
Steps to Reproduce:
1. emerge drbd
2. look for /etc/init.d/drbd
3. not find it

Actual Results:  
Could not find start stop script


I have written my own start stop script: &quot;/etc/init.d/drbd&quot;

*********************************************************
#!/sbin/runscript
                                                                                
depend() {
  need   net
  before heartbeat
  after  sshd           # In case there are sync problems
}
                                                                                
start() {
  ebegin &quot;Starting drbd mirror driver&quot;
  ${DRBD} ${DRBDDEV} start
  if [ &quot;$?&quot; == &quot;1&quot; ]; then      # In case you decide this
    eend 0                      # node is primary the
  fi                            # script returns 1
  eend $?
}
                                                                                
stop() {
  ebegin &quot;Stopping drbd mirror driver&quot;
  ${DRBD} ${DRBDDEV} stop
  eend $?
}
***********************************************

and &quot;/etc/conf.d/drbd&quot;:
***********************************************
DRBD=/drbd      # This is an odd place for the script!
DRBDDEV=drbd0
***********************************************

I have set up the script to start after sshd so that I can control the sync
when the servers are waiting for input during boot. This has saved me trips
many times.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tantive@gentoo.org</who>
            <bug_when>2004-08-30 06:52:20 0000</bug_when>
            <thetext>I bumped it to -r1 and added your conf.d file and init script. Please have a look if everything is ok this way and report back.

Thanks in advance.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jeffrey@crawford.homeunix.net</who>
            <bug_when>2004-08-31 08:22:47 0000</bug_when>
            <thetext>This works for me..., I do have one additional question, why is the &quot;vendor&quot; provided start stop script in root &quot;/&quot; and not in /bin:/usr/bin:/sbin etc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jeffrey@crawford.homeunix.net</who>
            <bug_when>2004-10-06 16:29:32 0000</bug_when>
            <thetext>On a new emerge the config file called /etc/conf.d/0.6.12-conf.d was created.. This should be /etc/conf.d/drbd. After renaming it the start script works correctly</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>xmerlin@gentoo.org</who>
            <bug_when>2005-01-19 10:42:43 0000</bug_when>
            <thetext>the ebuild is already fixed in portage</thetext>
          </long_desc>
      
    </bug>

</bugzilla>