The scripts to be executed at boot, usually for starting deamons and mounting file systems.

learn more… | top users | synonyms

4
votes
2answers
48 views

What's the recommended way to run a service as a non-root user?

I have a simple init.d script which starts and stops a process. I call the init.d as root, but I'd like the process it controls to run as a specific user. The most common suggestion online seems to ...
1
vote
1answer
103 views

hostapd will not start via “service” — but will start directly

I am having trouble getting hostapd to start as a service. It fails when I try to start it: $ sudo service hostapd start [FAIL] Starting advanced IEEE 802.11 management: hostapd failed! From what ...
0
votes
1answer
106 views

Upstart documentation for CentOS 6

I am currently migrating from CentOS 5.5 to 6.4. Having fun converting /etc/inittab stuff to upstart. Ran into a lot of little problems but am getting the hang of it now. The best documentation ...
3
votes
2answers
119 views

Why pidof and pgrep are behaving differently?

I have a init script in /etc/init.d/myservice for initialize a service like this: ... start() { ... daemon /usr/sbin/myservice ... } stop() { ... pgrep myservice pidof myservice ps -ef ...
18
votes
1answer
604 views

What sets systemd apart from other init systems?

It is not quite official but it looks like systemd is coming to Debian and after reading some of the heated mailing list discussion on that decision, I am curious about the polarizing nature of ...
3
votes
2answers
58 views

Why doesn't rc.local run entirely

Here is my rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # ...
1
vote
2answers
57 views

An init-script does not get called on shutdown

I have set up an init-script to control the state of a VirtualBox VM: #!/bin/sh #chkconfig: 35 99 5 #description: vTiger virtual machine ### BEGIN INIT INFO # Provides: vtigervm # Required-Start: ...
3
votes
3answers
34 views

possibilty of running deamons with under privilaged users while bootup

I have authoritative DNS daemon in my test DNS setup. which is responsible to provide host IP at best choice. Anyway this daemon/process can run by setting some capabilities using setcap and then a ...
1
vote
1answer
85 views

How to make some initscript start after delay at boot?

I want to run a thing that may disrupt the system (or remote access to it) if something goes wrong (for example, misconfiguration). To reduce problems I want to have a "grace period" after the system ...
2
votes
2answers
60 views

LFSH … what is '/lib/init' for?

I'm trying to understand the init/boot process. My system is LMDE, so I presume it will be pretty much standard Debian in that regard. I believe I more or less understand the basics of the init ...
1
vote
1answer
176 views

Linux Mint: How to enble cryptswap with custom password?

When you want to use hibernation and you care for security, you'd like to have the swap encrypted. But not with the random password, chosen for you at startup, but with a fixed one, supplied by you at ...
0
votes
2answers
53 views

Run a single command at the start of the machine

Most unix servers do have services defined as init scripts, on linux in: /etc/init.d and on hp-ux in: /sbin/init.d. However, what if I just want a single command to be executed when machine boots? I ...
2
votes
1answer
80 views

local shutdown scripts (do's and don't's)

At work, I'm running linux, and use vagrant on a daily basis. What I find annoying is that the system often hangs when I reboot/shut down, if I forgot to vagrant halt any virtual boxes I may have ...
-3
votes
1answer
59 views

where is this HOME environment variable and what do I have to add -H too it?

I recently attempted to run a boot up script which failed I didn't know why it failed so I posted a question about that here. chkconfig bootup script failing, script runs good manually Where the ...
2
votes
1answer
234 views

chkconfig bootup script failing, script runs good manually

I recently purchased a vps and I attempted to create a startup/restart script to start up my java program. I am running CentOS 6. The script works if I execute it manually with this command: ...
2
votes
1answer
59 views

Why is the restart inittab action asking me for an id?

I am following the NAND firmware update tutorial to try to get my system to run from RAM so I can flash it. I previously had my script running but for some reason unknown to me it is giving me: INIT: ...
4
votes
1answer
69 views

bash_completion for initscripts

I have writen my own initscript /etc/init.d/myscript. I can start and stop my script with the service command service myscript start service myscript stop When I type service <TAB>, ...
2
votes
1answer
254 views

How to properly use Gentoo Linux as a supplement to an existing distribution?

While I originally wanted to entirely replace the Linux distribution my NAS uses, I meanwhile came to the conclusion that it would be better to leave the existing system as unmodified as possible and ...
3
votes
2answers
119 views

How to make /etc/init.d script act like it's launched under X?

I'm trying to track down some quirkiness with a Java application that misbehaves when launched via a startup script in /etc/init.d , but runs fine when you open a GUI terminal window and run it ...
2
votes
1answer
449 views

Sabayon - mysql (and other services) won't start

It's a fresh install of Sabayon Linux. I installed mysql (equo install dev-db/mysql), configured it (emerge --config ...), but it doesn't start using /etc/init.d script: # /etc/init.d/mysql start * ...
1
vote
1answer
206 views

Daemons not starting during the boot on PUIAS (RedHat) 6.4

I am total Linux n00b entrusted with bunch of PUIAS (RedHat) 6.4 servers and desktops. I noticed after rebooting my computing nodes (done just for testing purposes) that many of the daemons which are ...
0
votes
1answer
42 views

Why env variable are not visible while starting a service

I am wondering why during service start up environment variables are not visible. To be more precise: I created service startup scrip according to LSB spec which starts some java process. For this ...
2
votes
2answers
2k views

How to make a script run at boot time in Debian Wheezy?

I am writing a script to do some tasks at boot up time in my Debian Wheezy AWS EC2 AMI. Sources on the internet say that usual way to do this is to use update-rc.d to install the symlinks needed to ...
3
votes
1answer
230 views

How to trick an init script into returning 0

I have a init script which is poorly designed because it does not conform to the Linux Standard Base Specifications The following should have an exit code of 0 if running, and 3 if not running ...
0
votes
2answers
64 views

Run level script - Help

I want the following command to be ran, as soon as system boots. glances -s -P redhat & How to achieve that? I tried writing a run level script which didn't work as expected.
3
votes
1answer
89 views

Flatten shell script (include sourced scripts) and remove unused functions

I am manually tweaking Debian init scripts in order to optimize the boot time of an embedded device. So far I reduced it by half just with the "low hanging fruits" ie. the smaller scripts that are ...
3
votes
1answer
81 views

autostarting scripts in debian

I have a service that I install as so: install -m 755 init_script /etc/init.d/spacenavd cd /etc/rc2.d ln -s ../init.d/spacenavd S99spacenavd what the init_script does is start the script: ...
3
votes
2answers
276 views

How to update an init script

What is the proper way to update an init script an ubuntu system? I am trying to upgrade my version of gitlab from 6-0 to 6-1, part of the upgrade consists of replacing the init script. Upgrade ...
2
votes
1answer
293 views

Why can't boot this process at launch?

I have two scripts /etc/init.d/puma_a.sh and /etc/init.d/puma_b.sh with identical configs. I try to set both boot like this, but one of them doesn't load on boot. If I manually launch it from console ...
2
votes
1answer
62 views

How to schedule initial configuration of a system after cloning?

I want to setup a big amount of servers using cloning. After the initial image was applied, I want to run a configuration script. The cloning will be done through hard disk replication by the hardware ...
1
vote
1answer
71 views

init-scripts in autoyast to autodeploy Suse Linux server

I'm deploying a base SLES11.1 server using autoyast. What I want to achieve is to install some packages on it after the deployment. So I use the init-script in the autoyast control file. Here is the ...
0
votes
0answers
88 views

update-rc.d with shairport v1.0-dev

I've just tried setting up shairport 1.0-dev on the raspberry pi running Raspbian “wheezy” and it works fine when started manually (music plays and is discoverable). I then tried to make it start on ...
1
vote
1answer
326 views

How to write a pre-mount startup script?

I want to create a bootup script that runs before the root filesystem / has been mounted as I want to use dm-cache to cache it. The script is supposed to contain cache setup commands. Where would I ...
0
votes
1answer
130 views

Similar method to /etc/init.d

I have set my script to run using the /etc/init.d method. All works good. The problem is that my script does packet capturing and when it restarts the machine after say the crond is loaded then it ...
0
votes
0answers
30 views

Is there something as flexible as crontab for user-level autostarts? [duplicate]

I'm looking for a flexible per-user initialisation tool to kick off user daemons when the system (re-)boots. I suppose something similar to crontab would be great, which works for every user ...
2
votes
1answer
205 views

/etc/init.d/ script starts during loads and crash the system

I have centos 6.4 machine. I created my own script using /etc/init.d/ . Below is the snippet which I took from the net and tried it. The problem now I notice which loading my os when this is loaded it ...
3
votes
2answers
121 views

why do I have two different results if I run a program through terminal(as root) or /etc/init.d(or /etc/rc.local)

Background: I use Debian Lenny on an embedded device uname -a Linux device 3.4.0 #83 Sun May 26 17:07:14 CEST 2013 armv4l GNU/Linux I have a C code (say my_C_program) that calls a board specific ...
1
vote
1answer
478 views

adding a program on start-up by using LSBInitScripts

I use Debian Lenny (I know lenny is old and other bla bla) and would like to place a program on the start-up. I use update-rc.d by adding an executable file on /etc/init.d. By referring to ...
0
votes
1answer
772 views

Change init scripts priority

I'm running a raspbian (based on debian). I want to change the priority of the init services so the very first script which is run by init is one made for me. How can I do it? On runlevel S I have ...
1
vote
1answer
57 views

Init script header not resolving dependency

I need to run a /usr/sbin command in my init script, so there is a dependency for the /usr filesytem to be mounted. To resolve the dependency, I put $local_fs or boot.localfs (I also tried ...
0
votes
1answer
135 views

Init script partially launches java app

I have a java application that I manage to execute by hand. The application normally opens several ports for local communications (7180 => 7183). Port 7182 serves as a web console and allows me to ...
1
vote
1answer
273 views

Need to configure network card manually after each reboot

I am using SUSE Linux Enterprise Server 11 (x86_64) as VM Ware virtual machine (that was cloned). Not sure why but network card cannot be configured via yast2. If I go to edit and hit enter Yast will ...
1
vote
2answers
162 views

Distro agnostic init script dependencies

I'm trying to write an init script which will be able to handle basic dependencies (for example, It has to be started (just) before MySQL service starts). Is there a distro agnostic way to write such ...
1
vote
0answers
271 views

Why does my server not shutdown properly?

When I run $ reboot on my embedded FreeNAS 0.7 (FreeBSD 7.2) it does start the shut down procedure but seemingly hangs. I have registered a command to start a service script which is executed on ...
0
votes
3answers
101 views

Networking starts up but interface has no IP

I have a box that is supposed to run headless. When I boot and manually run /etc/init.d/networking everything starts fine. When I add it to my startup scripts (/etc/rcS.d) as placed by sysv-rc-conf ...
4
votes
1answer
103 views

Displaying all sysvinit init scripts

Is there some tool that displays all available init scripts (on Debian), short of one having to remember a location like /etc/init.d, not to mention that not everything in there is an init script?
1
vote
1answer
556 views

What are the chkconfig directives (classic style) into init.d scripts?

To ask my question, I must first clarify the context. Every init script in /etc/init.d (on RedHat and Centos distros) is prepared to be managed with the chkconfig command-line tool utility. This ...
2
votes
1answer
326 views

“provide net” in gentoo init script doesn't work as I thought

I'm running into a strange (to me) problem. I'm running a gentoo with two net interfaces: enp5s0 (wired interface) and wlan0 (wifi). When I try to run a program, for example openvpn, from its script ...
0
votes
0answers
25 views

Mezzanine start up script

I am having a world of pain writing a simple start up script for Mezzanine. Running python manager.py runserver just refuses to demonize using start-stop-daemon. Does anyone know of a such a simple ...
0
votes
1answer
2k 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, ...