Tagged Questions
0
votes
1answer
62 views
Auto-restart an process when it crashes
I have an app that I need to autostart when the OS starts. I am running in a CentOS 6, so I am using a LSB init script placed in /etc/init.d. So far this is fine and working.
Now....besides that, ...
1
vote
0answers
81 views
Naming process in init scripts
I'm trying to write an init script that will start a service that needs to have started postgresql server before. Bellow is the postgresql's init header:
#!/bin/sh
#
# postgresql This is the init ...
2
votes
2answers
338 views
Can readahead-services be safely disabled?
I am just going through the service-list of a server (CentOS 5) - the question will probably apply to other RedHat, Fedora, ... versions, too.
Note that my servers normally run in runlevel 3 (no GUI ...
2
votes
3answers
4k views
How to create an unprivileged user in CentOS?
I want to create an unprivileged user to run my RhodeCode server and Celery daemon on a CentOS instance. I think the accepted definition of this is no home directory, login disabled, and no shell ...
3
votes
1answer
222 views
SysV init run levels
On a system that uses SysV init run levels such as Centos 5, when the OS is booting, does it go straight to the run level defined in /etc/inittab?
If I change my run level using the init command do ...
2
votes
1answer
271 views
load program/module at boot
I'm trying to load a program I wrote at boot. The program is also a module.ko and a small bash script. For the module I tried doing depmod mymodule.ko and modprobe -a and messing around with modprob ...
6
votes
4answers
737 views
Why do I need to hit enter to get my shell prompt after my init.d script completes?
I had to write my own CentOS init.d script for celery because it only ships with one for Debian. You can see the script I wrote when I answered my own stack overflow question 3989656.
But there's a ...
2
votes
3answers
659 views
How do I set the group (gid) of a process I'm about to launch?
I'm porting a Debian init.d script to CentOS. In the Debian script, it uses start-stop-daemon for launching the process. The script uses start-stop-daemon's --group flag to change to a different ...