What are the correct permissions for /etc/init.d/ scripts?
What are the correct permissions for /etc/init.d/ scripts and what chmod options sets them? The common set is simply 755 even though only root should be running them. So: chmod 0755 <file> Check...
View Articleinit.d not executing stop command on reboot
I have an init.d script to start a Python script: #!/bin/sh # ############################################################################### # sd-agent # # Written by Boxed Ice...
View ArticleWhere do they belong? “ifconfig eth0 up” &“dhclient”
I have a minimal linux installation. The problem is that in order to access the web I have to issue ifconfig eth0 up dhclient after every restart. Where is the canonical place of these commands on an...
View ArticleHow can I find out what is causing init(8) to launch a process?
I installed Google Desktop for Linux and want to prevent it from running without necessarily deleting all its files. I managed to find and disable the file in /etc/cron.hourly, but gdl_box is still...
View ArticleHow do I mount sshfs at boot?
Using a NAS box as 24/7 file server, I’d like to use sshfs to connect to it from an Ubuntu 9.04 desktop. Currently, I have this line in the desktop’s fstab: sshfs#jldugger@storage:/mnt/HD_a2/...
View Article/etc/inittab respawn script migrating from RHEL/CentOS 5.x to 6.x
I have a non-forking perl script running as a TCP-sockets daemon (this script is a backend for a multiplayer game) in CentOS 5.7. It is being started and respawned by /etc/inittab:...
View Articleinit script that logs output of the script
How can this be done? I know it’s pretty simple and includes appending something like & or &> to the actual command that starts the init script. But, what is the best approach and how can...
View ArticleRunning sudo commands in cloud-init script
I’m developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure. What I do is: run a Fabric script which connects to EC2 and initializes a new instance,...
View ArticleHow to install init-checkconf for upstart?
Upstart is installed, but init-checkconf is not. Any ideas how to get both? $ sudo init-checkconf sudo: init-checkconf: command not found $ sudo dpkg --get-selections | grep upstart upstart install $...
View ArticleWeird init script issue with corosync
This probably has a simple explanation, but I certainly can’t think of it. I’ve got corosync installed (via yum), with it’s default init script. Something is strange on this particular CentOS...
View Article