Questions tagged [rc.d]

23 questions
68
votes
11 answers

Disable a service from starting at all runlevels?

I have a service foo which currently starts at runlevel 3 and above. How can I stop it from doing so, without using update-rc.d foo stop 3 ., which (if I understand it correctly) would turn off the service at each runlevel change. (ie., if I was at…
lfaraone
  • 1,611
  • 3
  • 18
  • 23
30
votes
4 answers

How to find error messages from Linux init.d/rc.d scripts?

In Linux, I've written some scripts to be executed during boot and played around with the various ways of installing them. For larger scripts I'll put in /etc/init.d and link the appropriate /etc/rc.d/rc?.d runlevels. For smaller scripts, I'll…
McKAMEY
  • 635
  • 1
  • 6
  • 14
6
votes
2 answers

How do I automatically start supervisor on boot in FreeBSD?

Is there a pre-existing startup script for supervisord on FreeBSD? If not, is there a good guide for writing rc.d scripts for FreeBSD? I'm pretty new to the platform. Thanks. UPDATE: I now have the following in /usr/local/etc/rc.d/supervisord, but…
Hank Gay
  • 375
  • 3
  • 11
5
votes
2 answers

How to change rc.d startup order in FreeBSD?

My question exactly same as this question except I want to change services in FreeBSD. I made some research and I found rcorder command which gives full order of services with below paramaters. rcorder /etc/rc.d/* /usr/local/etc/rc.d/* In…
ibrahim
  • 431
  • 1
  • 7
  • 20
4
votes
2 answers

FreeBSD rc.d script doesn't start as a daemon

I have developed the following script at location /usr/local/etc/rc.d/bluesky #!/bin/sh # PROVIDE: bluesky # REQUIRE: mysql sshd # BEFORE: # KEYWORD: .…
Megidd
  • 241
  • 3
  • 15
3
votes
1 answer

Installing SP2 on SLES 11 overwrote /etc/init.d/boot.local

From what I understand, the file /etc/init.d/boot.local is a perfectly legit place to sprinkle a few extra commands you would like to be run when SLES 11 starts up. However, when our organization recently upgraded to SP2, this file was completely…
Alfred Fazio
  • 131
  • 2
2
votes
2 answers

RHEL4 script on shutdown

I need to backup some files every time I shutdown a Red Hat Enterprise Linux 4. I thought about make it with a script in /etc/rc0.d but shutdown process should wait for my script to finish. So the only idea I have is to make the script run first of…
Abraham
  • 73
  • 1
  • 1
  • 13
2
votes
3 answers

FreeBSD rc.d script doesn't work when starting up

I am trying to write a rc.d script to startup the fastcgi-mono-server4 on FreeBSD when the computer starts up - in order to run it with nginx. The script works when I execute it while being logged in on the server - but when booting I get the…
kastermester
  • 177
  • 8
2
votes
1 answer

Rebuilding /etc/rc?.d/ links

A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list). The system seems to boot and run normally, but I'm worried its storing up…
timday
  • 866
  • 1
  • 10
  • 24
2
votes
2 answers

After Reboot of machine, startup script raise one server, but one stays down. When i manually start script both servers starts fine

#!/bin/bash ###BEGIN INIT INFO #chkconfig: 12345 98 13 #Provides: ACE #Required-Start: $local_fs #Required-Stop: $local_fs #Default-Start: 2 3 4 5 #Default-Stop: 0 1 6 #Short-Description: IBM ACE Control #Description: …
Boro
  • 31
  • 5
2
votes
1 answer

FreeBSD perform certain task when a new user is created

Is there a way to perform additional tasks every time a new user is created with adduser(8) in FreeBSD? To be more precise, i'd like to create a directory for every new user and map this user with pdbedit(8) to the SAM database. Some Linux…
kundev
  • 51
  • 5
1
vote
0 answers

MongoDB rc.d script for FreeBSD

I want to start MongoDB (aka mondgod) as a service under FreeBSD. I have the following in rc.conf: mongod_enable="YES" mongod_config="/usr/local/etc/mongodb.conf" mongod_dpath="/var/db/mongod" But service mongodb stop (and mongod) give me: mongod…
1
vote
2 answers

FreeBSD: Starting PostgreSQL before other services

I run a python application on FreeBSD that uses PostgreSQL, Nginx, and UWSGI. UWSGI I manage with SupervisorD. My /etc/rc.conf looks like this: ... postgresql_enable="YES" nginx_enable="YES" supervisord_enable="YES" SupervisorD starts a couple…
1
vote
0 answers

Wrong PATH in init script on boot

Since the update of the System on my Synology NAS (x86), I have some problems with my startup scripts. The Bash scripts are stored in /usr/local/etc/rc.d. The scripts were executed for sure, because I have a Server running on root and it's starting…
xlw12
  • 111
  • 2
1
vote
1 answer

Slackware 10.1 hangs at boot with kernel 3.x

In Slackware 10.1, what happens between rc.S and rc.M during boot? Trying to boot kernel 3.x (tried 3.4 and 3.10) on this box and it hangs right after rc.S finishes execution. 2.6 kernels boot up just fine. rc.M doesn't get to run, as "Going…
evilSnobu
  • 226
  • 2
  • 8
1
2