Questions tagged [startup-scripts]
121 questions
64
votes
2 answers
Create a directory under /var/run at boot
I had a daemon that needed its own dir in /var/run for its PID file with write permission granted to the daemon's user.
I found I could create this dir with these commands:
# mkdir /var/run/mydaemon
Then I could change its ownership to the…
user24601
- 873
- 1
- 6
- 8
32
votes
4 answers
Execute script from rc.local as user instead of root
I want to execute a script every time my server start up. The problem is that I need to be a certain user to execute the script, if I try to do it as root it cant find certain packages (such as ruby).
I try to change to xxx user01.
sudo su…
Philip
- 375
- 1
- 4
- 8
12
votes
1 answer
No such file or directory error when trying to execute startup script in Debian
Very new to Debian (Raspbian), and I'm struggling on this one for a few days.
I have a startup script that I want to execute at startup.
I have executed the following commands, to make the script executable and to add it with the default parameters…
Sam Vanhoutte
- 223
- 1
- 2
- 6
9
votes
4 answers
How can I set environment variables when I ssh login to my Unix box by passing custom arguments?
I want to pass some parameters as part of my ssh connection that I can use to set custom variables for my login to do certain things or run certain scripts. How do you do this running Putty on Windows machine, connecting via SSH to a CentOS machine?
qodeninja
- 2,723
- 10
- 31
- 33
7
votes
1 answer
postgres not starting after reboot on ubuntu
I'm not familiar with ubuntu (raring), so could someone help me please:
I'm using postgresql 9.1 from apt. It installed the appropriate init script in /etc/init.d/postgresql. I can start the server manually using the script. However, postgres is not…
Chris
- 170
- 1
- 6
6
votes
1 answer
GPO startup script not being ran
I am unable to get a GPO to run a script on startup. The script creates a shared folder on each machine in a group of windows 8 machines. The script itself works great, but attaching it to a GPO is giving me a problem. Even after gpupdate /force…
Adam H.
- 71
- 1
- 1
- 5
5
votes
1 answer
How to allow for a slow-starting dependency service in systemd
Sometimes a service will start and fork - giving systemd the illusion that it's ready - even though it hasn't finished "warming up". In this particular instance I'm using ApacheDS to provide LDAP services. When this unit is started, checking…
Daniel Miller
- 199
- 3
- 7
5
votes
2 answers
Execution order of runlevel scripts
My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example
K05foo -> ...
K10bar -> ...
K80baz -> ...
S10somemore -> ...
S90halt -> ...
Is it correct, that the excution order is as listed above, that is
First all…
Philipp
- 515
- 1
- 5
- 13
5
votes
2 answers
OK to modify HKLM\Software\Policies and HKCU\SOFTWARE\Policies on a domain?
Background:
I have a domain (2003 Functional Level) with a mix of Windows XP and Windows 7 clients. We have been using Group Policy to manage our workstations.
Now, I am in a situation I need to apply different GPO Policies (not Preferences) based…
myron-semack
- 2,573
- 18
- 16
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
- 7
- 20
5
votes
3 answers
Windows 2008 startup script will not run?
I am trying to get a very simple batch script to run when my Windows 2008 Server (R2) system starts up. I have added the script to the "Startup Scripts" in the local group policy by running gpedit.msc, and I see the script listed under Windows…
larsks
- 41,276
- 13
- 117
- 170
5
votes
4 answers
Best way to tag/identify processes for killing them later?
In my linux startup scripts, when I start a process like (openvpn used for this example, but the question is general to any process);
openvpn --config /etc/myserver.conf
what is the best way to find it and be 100% certain it's the right process and…
Steve Kehlet
- 1,055
- 1
- 10
- 16
5
votes
2 answers
Getting Xvfb to start upon booting system in Ubuntu Maverick
I'm trying to get Xvfb to run when the system starts up on Ubuntu 10.10 (Maverick), but it's not working. In /etc/rc.local, I have the following:
/root/start_xvfb.sh >> /var/log/start_xvfb.log 2>&1
exit 0
And in /root/start_xvfb.sh I…
user75894
- 153
- 1
- 3
4
votes
2 answers
Execute specific bash script on Gentoo Linux startup
I own a VDS running Gentoo Linux and I am curious about how to execute specific bash script at startup of my VDS.
I just want to startup apache2 at boot time and run two thin instances.
Eskat0n
- 143
- 1
- 5
4
votes
2 answers
Windows 2003 DC GPO Asking for Password on Startup
Simple answer I am sure...I an trying to deploy Office 2010 to clients via the GPO startup script but am having issues. Soon as the computer starts, it prepares network connections then goes on to running startup scripts. Soon as my startup script…
John
- 157
- 2
- 10