| Issue 1372: | Init.d instructions for Debian and Ubuntu do not start server | |
| 11 people starred this issue and may be notified of changes. | Back to list |
Regarding the documentation here: http://gerrit-documentation.googlecode.com/svn/Documentation/2.3/install.html#rc_d On my Ubuntu 11.10 system the default runlevel is 2 and not 3, so the current documentation will not start gerrit upon boot. It would be useful to provide for Debian and Ubuntu the commands to properly set up init.d scripts using the OSes commands on this page: sudo ln -snf `pwd`/review_site/bin/gerrit.sh /etc/init.d/gerrit2 update-rc.d gerrit2 start 99 2 3 4 5 . stop 01 0 1 6 . I use 'gerrit2' here, but it could be 'gerrit'. However, most init.d scripts do not end in .sh on my system, so I don't recommend 'gerrit.sh'.
May 5, 2012
Project Member
#1
bklarson@gmail.com
May 8, 2012
@bklarson what does `runlevel` or `who -r` say on your Ubuntu system? My system was a fresh 11.10 install. I'm working on a patch for the documentation that I'll push to gerrit.
May 8, 2012
I'm running fresh 12.04 now, and I am indeed running at level 2. I believe I was running 9.x or 10.x when I first set it up? In any case, it sounds like switching them to be level 2 sounds good.
May 8, 2012
I need to get approval from our legal department to submit patches which could take a while. But in any case, here's the command I used sudo ln -snf `pwd`/review_site/bin/gerrit.sh /etc/init.d/gerrit2 sudo /usr/sbin/update-rc.d gerrit2 start 99 2 3 4 5 . stop 01 0 1 6 . This will start gerrit for runlevel 2, 3, 4 and 5 as the last thing and stop it as the first thing on the way down.
Jan 23, 2013
I'm now starting gerrit at 98 and stopping it at 02 to allow Jenkins/Hudson to run at 99/01 and start after it, since Jenkins has a Gerrit plugin that will start a persistent ssh connection to Gerrit.
Jan 29, 2014
We have the same issue, the default install of Ubuntu 12.04 has us at runlevel 2.
Aug 21, 2014
I have the very same issue. I'm running Debian 7.6. I was only able to fiz this by editing /etc/rc.local and restarting gerrit from there with etc/init.d/gerrit restart |
|
| ► Sign in to add a comment |