Questions tagged [startup-scripts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
3 answers
4k views

How do I schedule a batch file to run on startup or shutdown?

I have 2 batch files that send emails intended to notify of a server shutdown or startup. The batch files call an exe with a single argument, the message to be sent. The exe comes from a vb.net ...
Alan's user avatar
  • 1,023
0 votes
1 answer
732 views

upstart CentOS vs upstart Ubuntu is there any difference between them?

I'm moving some server configurations from Ubuntu Server 12.04 to CentOS 6.6. Now I'm working on /etc/init script that should be handled by upstart at both OS as far as I know. The files on both ...
ReynierPM's user avatar
  • 720
1 vote
0 answers
1k views

"Please Wait" When running startup script, only on Windows 8.1

I have a startup script and I have been testing it on 3 different virtual machines. These machines are running different versions of Windows(7, 8, and 8.1). They all have the same Group Policy applied ...
almyz125's user avatar
  • 111
0 votes
1 answer
57 views

Copying blobs to Azure customized VM's on boot

As I'm looking to take advantage of the SSD disks offering (D type in Azure), I understood that the only way to use them, is to copy the data to attached SSD disks from external storage like blob. I ...
SyRenity's user avatar
  • 3,189
0 votes
0 answers
154 views

sysv init scripts -- differentiate between first run (boot) and subsequent runs

Normally sysv init scripts are run at boot time (from /etc/init.d/rcS) with the 'start' argument. However they can also be invoked with the 'start' after boot, for exmaple when a service is stopped ...
Grodriguez's user avatar
0 votes
1 answer
2k views

File Location of mysql startup script on Ubuntu

When we run a command as "service mysql start" [OR] "/etc/init.d/mysql start", The mysql daemon it starts. Who is providing the job mysql to start to those commands? What is the startup script file ...
user27's user avatar
  • 103
6 votes
1 answer
26k views

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 ...
Adam H.'s user avatar
  • 71
1 vote
1 answer
230 views

Run a script via .plist on login as if in a specific directory

My .plist file calls a shell script but the script fails because it references other files in the same directory as the script. Thus the script only runs successfully when I 'cd' to the correct ...
Ian Warburton's user avatar
1 vote
2 answers
823 views

How do I output the previous logged in IP's during an SSH login to my ubuntu server?

I have Ubuntu 12.04 installed and everytime I log in, I would like to see the previous IP addresses that logged in to my server. How would I go about doing this? I have fail2ban installed already.
Patoshi パトシ's user avatar
5 votes
2 answers
7k views

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 ...
Philipp's user avatar
  • 505
12 votes
1 answer
28k views

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 ...
Sam Vanhoutte's user avatar
1 vote
1 answer
1k views

How do I make a program start up automatically on reboot?

I am currently renting a VPS that is running CentOS 6.5. I am using it to run a basic forum site, and obviously, I need a web server and MySQL to power that. I have chosen Apache for my web server, ...
J.W.F.'s user avatar
  • 348
0 votes
1 answer
743 views

Startup Script Launch IE Browser

how to launch a startup script (batch file or VBS or PowerShell) that will open a browser on startup? I want to deploy this using GPO, i'm only able to achieve this by using logon script, but if used ...
JJJCR's user avatar
  • 1
5 votes
2 answers
1k views

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 ...
myron-semack's user avatar
  • 2,613
1 vote
0 answers
125 views

How to use input variables within a systemd script? [duplicate]

I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command. However, when using this command I need to be ...
Fnux's user avatar
  • 173
1 vote
1 answer
2k views

Reconnect Windows Network Drive after network connection has been established

User uses a piece of software (simple database and front end app) that connects to a database stored on another workstation, by way of mapped drive. This mode of access is supported by the software ...
MDMoore313's user avatar
  • 5,591
3 votes
3 answers
4k views

how (linux kernel) network modules gets loaded without modprobe.conf

how (linux kernel) network modules gets loaded without modprobe.conf I have fedora distribution installed and can see e1000e module loaded automatically in the system. Is there a configuration which ...
kumar's user avatar
  • 443
1 vote
1 answer
528 views

Run script when Varnish starts

I'd like to run a script when Varnish starts. This script should execute a webrequest to a webserver (its backend), which then makes sure Varnish's cache gets filled with all pages residing on this ...
kipusoep's user avatar
  • 111
1 vote
1 answer
5k views

Providing network drive access to a windows service

I have a windows service, which requires access to a network drive. As Windows Service does not perform interactive logon, it's not possible to use mapped drive from active directory user logon script....
Tomasz Szkudlarek's user avatar
7 votes
1 answer
4k views

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 ...
Chris's user avatar
  • 170
5 votes
2 answers
6k views

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. ...
ibrahim's user avatar
  • 431
1 vote
2 answers
1k views

auto start user(not root user) process on fedora boot

I have a VM running under Fedora OS. That VM has four users lets say(A, B, C, D). That VM has one process running under each user. So when that VM is rebooted, what should I do so that those process ...
Gagan's user avatar
  • 111
-1 votes
1 answer
80 views

Sturtup script questions - will runas cmd allow app to be seen by user upon login?

I need to create a startup script on a server that is live in production, so unfortunately I don't have the luxury of trial and error. I need to start an application upon server bootup that is run as ...
Ikarian's user avatar
1 vote
1 answer
1k views

Configuring OpenLDAP init script on CentOS 6.4

If I just run slapd with no arguments (as root) it starts and works fine. When I try to start it using /etc/init.d/slapd start however, it dies immediately. I see from looking at the init script that ...
Brad Mace's user avatar
  • 1,024
3 votes
1 answer
2k views

Thin processes not starting after reboot on Ubuntu 12.04

Well, I'm running Ubuntu 12.04.2 and I have Thin installed by gem install thin sudo thin install sudo /usr/sbin/update-rc.d -f thin defaults and I have my configs at /etc/thin. But after system ...
kishie's user avatar
  • 151
-1 votes
1 answer
4k views

How can i create a startup script with sles 11? [closed]

I have a problem in one of my servers. I have a SLES 11 server and I have bond (bond0) two ethernet cards (eth0 and eth1). i setup mtu to be 9000 on all interfaces. When i reboot the server the mtu ...
Spiros P's user avatar
0 votes
2 answers
1k views

Can memcache invoke a script to reload itself after startup on Ubuntu?

Since memcache stores everything in ram, it will lose its store after a node recovers from failure. Does memcache offer a hook to invoke a script after it starts up? We want that script to do "...
SAFX's user avatar
  • 121
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
0 votes
2 answers
4k views

LSB confirm startup script won't start apache tomcat on ubuntu

I want to start my tomcat server automatically on startup. Therefore I retrieved a simple LSB conform script from the net and modified it to my needs. This is the script: # Provide logging functions ...
toom's user avatar
  • 227
0 votes
1 answer
90 views

Startup script on one server only in Amazon EC2

Right now I have a setup with a load balancer that starts new instances of a server (debian) if needed be on the Amazon EC2 cloud. On this setup I have a script that needs to be running on only one of ...
Kasper Middelboe Petersen's user avatar
1 vote
1 answer
10k views

Trouble using update-rc.d to change Debian startup order

I have a Debian Wheezy system on which I want Tomcat to start after MySQL. In the default runlevel 2, they are named as follows in /etc/rc2.d: S16tomcat7 S18mysql I can get the desired effect, at ...
fazy's user avatar
  • 800
1 vote
1 answer
210 views

Is it safe to remove the Bash Shell startup files for Samba user accounts?

I'm in the process of setting up Samba shares for a SOHO network and would like to know whether or not it is safe/advisable to remove a Samba user's Bash Shell startup files (i.e. .bash_logout, ....
aefxx's user avatar
  • 172
1 vote
2 answers
3k views

Apache and MySQL doesn't start at boot

I am running Debian 6 on a server. On this server I want to have an instance of Apache2 and MySQL started when the system boots. For this purpose I know there are the init.d script and the symbolic ...
Leward's user avatar
  • 113
0 votes
2 answers
2k views

Startup services are not getting started in CENTOS

I deployed my project on a Shared Hosting that has Root access the Server in picture is CENTOS now although I have defined the service to start on boot it not getting started chkconfig --level 35 ...
Viren's user avatar
  • 181
2 votes
1 answer
2k views

Why is my Cloudformation script not starting apache?

I'm trying to create an instance to run apache, and everything seems to be working, but the web server is not being started. It starts up fine manually. If I reboot the instance, it does not ...
chris's user avatar
  • 4,003
1 vote
3 answers
11k views

Filtering GPO's Based on Computer Account Security Group

So, I have a GPO, which runs a quick start up script to delete locally installed IP printers from all machines on our AD domain during computer start up. This works great...the issue appears when we ...
woodsbw's user avatar
  • 569
3 votes
1 answer
8k views

Starting a service only after another one is completely started (on CentOS)

I have installed on my CentOS server postgresql service and another one called netnfork. The 'netnfork' service starts only after postgresql starts. netnfork init script: #!/bin/sh # # netnfork init ...
artaxerxe's user avatar
  • 541
5 votes
3 answers
10k views

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....
larsks's user avatar
  • 44.7k
1 vote
1 answer
856 views

Permanently change hostname of Debian Squeeze virtual server

I have a virtual server running Debian Squeeze. I can change the hostname by running the hostname new.host.name command or by editing /etc/hostname and then running /etc/init.d/hostname.sh, but after ...
x-ray's user avatar
  • 148
4 votes
2 answers
4k views

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's user avatar
  • 143
2 votes
1 answer
132 views

Deploy multiple office products using startup scripts

I need to deploy MS Visio 2010 and MS Project 2010 to users that belong to a specific security group. Most of the time users will only need one or the other, but on occasion they will need both. The ...
Garrett Dumas's user avatar
32 votes
4 answers
91k 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
0 votes
1 answer
363 views

init is the parent for a script: how can I find what initially launched the script?

The box in question is RHEL/CentOS 5.5 x86_64. It has been up for 80+ days. A custom watchdog script exists on the server which performs a variety of tasks and this particular script accepts a few ...
beaconfield's user avatar
0 votes
3 answers
3k views

Chroot on startup

I have a script that runs on startup, but it wont launch a application in chroot. #!/bin/sh /usr/sbin/chroot /root/chrootdir/ /bin/sh -c "lighttpd -f /etc/lighttpd.conf -m /lib" echo "script ...
Maidenone's user avatar
  • 103
-2 votes
3 answers
2k views

Can't create a working init.d for Apache 2.4.2 on CentOS

I built apache 2.4.2 on CentOS from source and now am trying to create an init.d script to go along with it. A friend gave me one script but it never outputted a success or fail and I disliked it. I ...
Dustin's user avatar
  • 11
2 votes
1 answer
508 views

startup script not executing on amazon linux

i'm trying to forward syslog to logentries.com which requires a line added to /etc/rsyslog.conf , so far so good. however, i'm running on amazon elastic beanstalk and have 3 environments (dev,staging,...
hackerhasid's user avatar
1 vote
4 answers
5k views

Can a GPO Startup Script starts a background process and exit immediately?

I have Googled, and not yet found an answer. Scenario: One of my GPOs have a Startup Script that takes a long time to finish. For some reasons, we have to run the scripts synchronously. Naturally, ...
pepoluan's user avatar
  • 5,108
2 votes
2 answers
4k views

Uninstalling software via startup script in AD

There is an antivirus package that exists on most of our machines that needs to be removed. I did not deploy this software and it was not deployed via GPO - it was installed manually by the previous ...
tacos_tacos_tacos's user avatar
1 vote
1 answer
206 views

Office 2007 Installer Not Logging When Run During Startup Script

I'm using a startup script to deploy Microsoft Office 2007 Standard. It's not working quite right and I'm trying to find logging information for it. Unfortunately, no log is being generated by setup. ...
bshacklett's user avatar
  • 1,388
1 vote
2 answers
6k views

Process in rc.local does not seem to run -- where to see?

I want to run a process in rc.local (Ubuntu Natty) but I am having trouble determining if it has run. I added /bin/sleep 10 /usr/bin/killall PassengerWatchdog /bin/echo "Killall returned with code $?...
Tom Harrison Jr's user avatar