14

I'm not used to using Ubuntu or Debian as a server. I'm more accustomed to Red Hat/Fedora ways and even Gentoo (yikes).

Under Red Hat installs, you can often configure most services that start from init using config files in /etc/sysconfig named by the service. Is there and equivalent thing under Ubuntu?

Specifically I'm trying to control how the libvirtd and kvm processes are started as far as command line options go. I need to add the --listen option somewhere.

Hennes
  • 64,768
  • 7
  • 111
  • 168
deltaray
  • 1,927
  • 4
  • 17
  • 23

2 Answers2

11

Ubuntu and Debian use Upstart as a replacement for init, but legacy init scripts are supported. Chances are that you can add the option in a script in /etc/init.d with the same name as the service. Also look in /etc/init for .conf files that control the runlevels that services are started and stopped on and how they're respawned, etc.

Dennis Williamson
  • 106,229
  • 19
  • 167
  • 187
  • Thank you. You're right. The place I needed to set the --listen option was in /etc/init/libvirt-bin.conf. – deltaray Jan 23 '11 at 01:18
6

First find your config you want to change using the following command:

systemctl list-unit-files

Then change the specific config using the following command:

sudo systemctl edit --full rocketchat.service
legoblocks
  • 103
  • 2
KayV
  • 161
  • 1
  • 4