Questions tagged [startup-scripts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
74 votes
2 answers
69k views

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 ...
user24601's user avatar
  • 993
32 votes
4 answers
92k views

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). ...
Philip's user avatar
  • 375
5 votes
2 answers
9k views

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....
user75894's user avatar
  • 153
3 votes
2 answers
3k views

View User's current logon script without domain admin rights

Is there a way to view which logon script is running for an AD user without having domain admin rights. I've tried gpresult and it isn't displaying any login/logoff scripts, but I believe the script ...
f3tt's user avatar
  • 179
3 votes
1 answer
17k views

how to run a shell scripts at every login in Centos

Actually i want to run my shell script at every time when a user login as well as at boot. i have tried using using crontab but it runs only at boot not at every login.so please tell me how to do ...
pawan's user avatar
  • 31
2 votes
1 answer
2k views

DISM deployed Windows 10 apps wont launch

I'm trying to deploy apps to computers around a school using DISM with a computer startup script. I've created a script to enumerate a directory on the network and install the app on the computers: ...
John Reid's user avatar
  • 165
2 votes
2 answers
11k views

Group policy startup script needs elevated priviledges

I have a script that I want to run at startup but that requires elevated priviledges. Is there a way of doing this with Group Policy? I tried adding it in as a startup script using GPO but it doesn'...
Phil's user avatar
  • 3,198
1 vote
1 answer
2k views

Running Script on EC2 Boot

I want to mount my EBS volume and start up the Apache/MySQL servers on my EC2 machine, but I can't even get my script to run at startup. I've tried putting it in: /etc/init.d/ /etc/rc.d/rc5.d/ /...
Andrew M's user avatar
  • 115
1 vote
1 answer
739 views

Apache mod_perl cannot locate startup script

Running Centos 6.6 with Apache 2.2.15 and mod_perl 2.0.4 I'm trying to add a startup script (startup.pl) but cannot seem to get mod_perl to find it. I've reduced the config down to the bare minimum ...
Ex Umbris's user avatar
  • 854
0 votes
4 answers
8k views

Running a bash script as root on boot

i have a script that calculate an ip address (using gateway address) than change, the script work when i launch it manually with sudo sudo ./changework.sh i want this script to run during bootup ...
Souhaieb's user avatar
  • 101