Questions tagged [rc.d]
24 questions
70
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,641
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
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
5
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
- 251
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
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
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
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
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
- 876
2
votes
2 answers
How to pass environment variables with FreeBSD service command?
The rc.subr ${name}_env specifies this for setting environment variable:
${name}_env A list of environment variables to run command
with. This will be passed as arguments to
env(1) utility.
So I tried using it like…
Rahul Bharadwaj
- 121
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
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…
rainsurf
- 11
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