Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [startup-scripts]

The tag has no usage guidance.

0
votes
0answers
45 views

Error running a startup-script: home environment variable not set in redhat instance running on GCP

I'm having trouble to understand the shell environement that is used to run startup scripts. What difference with a login session? If I set a simple starup script to print the env variables: ...
0
votes
0answers
37 views

MongoDB rc.d script for FreeBSD

I want to start MongoDB (aka mondgod) as a service under FreeBSD. I have the following in rc.conf: mongod_enable="YES" mongod_config="/usr/local/etc/mongodb.conf" mongod_dpath="/var/db/mongod" But ...
0
votes
0answers
20 views

Is it possible to get systemd to monitor a process that it does not start?

Some of our startup scripts have an ExecStart line that runs a curl command to start jobs from our Jenkins build server. Systemd does not know anything about the job that is started as a result of ...
0
votes
0answers
30 views

Echoing from /etc/init.d script on Debian

Problem: /etc/init.d scripts like exim4 do not echo to console until the script finished execution. (I had to modify the script, because there is no systemctl's service file for Exim 4 on Debian 9....
0
votes
0answers
57 views

Server 2008R2, startup/shutdown powershell scripts in gpedit.msc not working and not appearing in registry. Script works manually. No domain involved

It's a fully updated 2008 R2 box running WMF 5.1. I've got a powershell script that, under normal circumstances, e-mails me on startup or shutdown. It's working fine on a different 2008 R2 box. On ...
0
votes
0answers
38 views

running scripts that have sudo in it as sudo at startup?

I have a script that I want to run on startup. This script launches vms using sudo VBoxManage. How can I a) Execute this vm start script on the computer startup and b) make sure the sudos don't need ...
1
vote
1answer
299 views

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 ...
0
votes
1answer
107 views

System Account Access to Domain Share

Good morning. I'm trying to create a PowerShell startup script via Group Policy. I set the group policy and directed it to the location of the script. \ \server\c$\share\script.ps1 After applying ...
0
votes
1answer
186 views

GCE Ubuntu Multi-Interface Instance Route Configuration

I'm running an Ubuntu 16.04 instance with multiple interfaces. I'm looking to configure some routes on the 2nd interface. While I can do this manually, that does not persist with a reboot. Most ...
1
vote
2answers
828 views

Is it possible to see output startup script in compute engine

My Compute Engine vm when deployed run a startup script. Everything seems working well, but there is one command in the startup script which I think it doesn't. I run the command apt-get update &...
0
votes
3answers
4k views

Unable to start a script at startup ubuntu

I am trying to execute one script at startup on ubuntu 16.04 LTS desktop. I have added my script to /etc/init.d location. But after restart I am unable to see my script running using pidof -s pgd ...
0
votes
1answer
52 views

Right network interface autodetect and get dhcp while boot

While preparing the mini forensic system I hung on a problem: Let us imagine, we prepare a usb-flash booted linux for lot of diferent workstations. While setting up the network (ipv4 dhcp) we can find ...
0
votes
2answers
247 views

Crontab vs init.d which one to use for Startup Script?

I have a script that start my docker service and starts my container on RHEL7.3 machine when system reboots. Two ways are working for me: 1) Add script to rc.local 2) Add to crontab -e with path to ...
1
vote
2answers
2k views

init script for zookeeper

i have seen that the developers of zookeeper have a great zkServer.sh script to start,stop, restart etc zookeeper, but i have no idea why in the world they decided to skip init script to use. With ...
0
votes
1answer
619 views

Windows 10 Hibernate Boot let's suspend (Powershell) Script execution at Startup

I am intensively working with Powershell Scripts which are executed at startup (local machine, not logon). I had some problems to troubleshoot like "Wait for network" or replication failures between ...
0
votes
1answer
27 views

Debain Start Up Script - Google Cloud

so I would like to know how to create a script the performs three basic commands. sudo su - Admin cd ~/AMP ./ampinstmgr -a This is what I got, I have also given it 777 perms. #! /bin/sh ...
0
votes
4answers
3k 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 ...
0
votes
0answers
287 views

Clamav TCP 3310 setup Debian

I've run into this problem which is weird. I'm using Debian jessie I have setup clamav to listen also on port 3310 with the TCPSocket 3310 option. After saving the changes to the config file I ...
0
votes
1answer
124 views

Ubuntu-Server Does Not Present Logon After Executing rc.local Script

UPDATE: I completely commented out the rc.local script and the problem still persists. This time though, it seems like the boot process has made it further than before. It's still getting hung though. ...
-1
votes
0answers
147 views

Crashplan init script for non root user

I just installed Crashplan 4.8.0 on Ubuntu 16.04.1 as a non root user (user crashplan). To start crashplan after a reboot I placed the following script in /etc.init.d (and a symlink from rc5.d): #!/...
0
votes
2answers
81 views

How to start java application on boot

I have a server with Centos 6. I've installed an configured everything so my server application runs smoothly, however if there is any unexpected reboots I have to manually start an SSH session and ...
1
vote
0answers
23 views

Start script are not cleared table of processes

I have a proxy server, all ok. But, i have some problems & questions. First: when i make "/etc/init.d/nginx stop" or "/etc/init.d/nginx restart", of my config, it not reload and all nginx process ...
0
votes
0answers
172 views

How to start OpenVPN conditionally?

I need to bring up an OpenVPN connection on the condition that a site is not reachable (on numerous devices spread over several heterogeneous networks). I did not find any such feature in OpenVPN ...
1
vote
2answers
178 views

FreeBSD: Starting PostgreSQL before other services

I run a python application on FreeBSD that uses PostgreSQL, Nginx, and UWSGI. UWSGI I manage with SupervisorD. My /etc/rc.conf looks like this: ... postgresql_enable="YES" nginx_enable="YES" ...
1
vote
1answer
7k 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 ...
25
votes
2answers
16k 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 ...
2
votes
3answers
1k views

Showing the IP in the banner before login

I have a Linux machine and I want it to show the current IP in the banner that shows before the login prompt is displayed. How can I do that? I considered making a startup script that finds the IP in ...
-1
votes
1answer
116 views

Clients looking for GPO login script on my personal computer instead of doing it on the DC?

This is kinda weird. I have the Group Policy Management console installed on my Windows 7 workstation and I configure policies from there. Sometimes I do it directly on a domain controller, but most ...
2
votes
3answers
3k views

How do I start Jetbrains License Server automatically on my Ubuntu system?

Assuming I have my license server installed here: /opt/jetbrains-license-server, how do I configure it to start automatically?
1
vote
0answers
228 views

/dev/console terminal for startup service on Centos 7

I am working on a system running Centos 7 and I'm pretty new to Linux in general. I have a task to re-implement some startup services that was supported automatically by 3rd party tool in our previous ...
0
votes
1answer
1k views

Windows Server 2012 R2 logon sctips via GPO: run on every logon/connection?

Windows Server 2012 R2, non domain attached, running in VMWare workstation 9.x I would like to run a logon script to startup/resize BG Info. I have made the *.bat file, and it runs fine. I am new ...
2
votes
1answer
1k 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: ...
1
vote
1answer
344 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 ...
2
votes
3answers
2k views

Run a script when joining a domain

I have a Microsoft domain (mostly 2008r2\7). I looking for a way to run a script immediately after (the restart after) joining a domain (without requiring user login), and so far I've failed. Also, I ...
2
votes
1answer
60 views

Start a script on ganeti node after instance is started or migrated

There is a ganeti cluster. Is there any way to run script on ganeti node after some instance is start running on that node? In both situations - starting from scratch, and migrating live from another ...
1
vote
3answers
2k 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 ...
0
votes
1answer
529 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 ...
1
vote
0answers
923 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 ...
0
votes
1answer
53 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 ...
0
votes
0answers
92 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 ...
0
votes
1answer
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 ...
5
votes
1answer
16k 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 ...
1
vote
1answer
45 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 ...
1
vote
2answers
154 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.
5
votes
2answers
4k 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 ...
11
votes
1answer
24k 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 ...
1
vote
1answer
902 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, ...
0
votes
1answer
565 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 ...
5
votes
2answers
745 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 ...
1
vote
0answers
66 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 ...