Questions tagged [rc.d]

9 questions
6
votes
2 answers

What is the FreeBSD equivalent of Linux update-rc.d?

In linux I can easily add a service or disable it from startup using the update-rc.d command. I am trying to create a toggle-able service and I don't wan't to go into sed to manually edit the /etc/rc.conf file and add/edit a line…
6
votes
2 answers

Why vim does not recognize new runlevel7 in inittab?

Mainly for test purpose, I wish to modify /etc/inittab and add a new runlevel to my system (/etc/rc7.d). I have not save my modification yet, because I'm confused by Vim behavior. Indeed, the editor seems to not recognized the new runlevel as... a…
Guillaume Fe
  • 183
  • 6
3
votes
1 answer

Writing a simple rc.d script in FreeBSD

I would like to run the ELK stack in a FreeBSD Jail on an FreeNAS host. I have a hard time to get an simple init/rc.d script to work. #!/bin/sh . /etc/rc.subr name=logstash rcvar=logstash_enable load_rc_config…
user2927980
  • 307
  • 1
  • 7
  • 14
2
votes
1 answer

Windows Subsystem for Linux is unable to determine current runlevel

Issue Many apt-get installs are failing b/c the system can't determine current runlevel Background specs: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: …
Gabriel Fair
  • 351
  • 4
  • 14
1
vote
1 answer

update-rc.d ignoring sequence numbers

I'm trying to set up my system so that the emacs daemon starts after the machine boots. I've created the file /etc/init.d with the commands I want executed, but when execute update-rc.d, it ignores the sequence numbers I supply. [host…
mikemtnbikes
  • 199
  • 7
1
vote
1 answer

starting application in rc.d causes terminal to freeze

I have a application which uses stdin and stdout. I wish this application to start running as soon as possible after all the background daemons are running. I am using openwrt on an embedded system, using scp and serial to communicate with it. I…
uhsl_m
  • 121
  • 1
  • 3
1
vote
1 answer

How can I fix "insserv: There is a loop between service mountnfs and nfs-common if started" in Debian wheezy?

I'm working on a Debian wheezy x64 box, with dist-upgrade to: Debian 7.7 (wheezy) 64-bit kernel Linux 3.2.0-4-amd64 It's configured with Linux RAID10, dm-crypt/LUKS and LVM. I've installed VirtualBox from…
0
votes
1 answer

Disable program from starting at boot on cent6, mounted filesystem

I am mounting a filesystem with guestfish. It is a Cent6 machine. I want to be sure that it is not going to start http on boot. I can't chmod -x /etc/rc.d/init.d/http, so I've opted to: mv /etc/rc.d/init.d/http /tmp/. As this is a mounted…
Kahn
  • 1,652
  • 2
  • 19
  • 36
0
votes
1 answer

linux program not running at boot time

I have a few scripts: collection.sh start.sh script1.sh and script2.sh. I have these set up to run at boot time so that: collection.sh calls start.sh start.sh calls both script?.sh collection is set up by the following: $ cp collection.sh…
JDOdle
  • 113
  • 2