Questions tagged [startup-scripts]
126 questions
1
vote
5 answers
Apple Mac Startup Scripts
I'm running Mac 10.6 (Snow Leopard). I would like to have a shell script that handles some routing/vpn and server tasks executed on Machine startup.
This script should be preferably executed before the user logs in but as long as it is backgrounded…

Antitribu
- 1,719
- 3
- 23
- 37
1
vote
1 answer
Stumped on why my Startup GPO Script isn't executing BCDEdit correctly
Environment: MS Server 2019 DC, Windows 10 Workstations joined to the Domain.
The goal here is to set the Data Execution Prevention on a bunch of machines to OptOut. The way to do this via a command line or PowerShell script is this:
Cmd: …

The ITea Guy
- 321
- 1
- 6
- 16
1
vote
1 answer
Running script as user with root permissions
Due to conflicting and constantly changing permissions on mounted drives (which cannot easily be solved due to the development structure of programs), there is a script that must be run with root permissions.
This can be done with sudo…

Mark Deven
- 113
- 5
1
vote
1 answer
Shutdown instance in startup script takes long time
I've added a bash script in instance metadata which performs some tests and then runs the following command at the end of the script.
shutdown -h now
The instance and image is after removed, by the "spawning script".
The instance becomes…

JazzCat
- 167
- 1
- 9
0
votes
1 answer
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:
metadata
items:
- key: startup-script
value: '…

K Ben
- 41
- 4
0
votes
0 answers
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 the curl command and therefore cannot give us a…

Jason M.
- 1
0
votes
0 answers
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 me to actually type in a password.
I figured…

Codejoy
- 107
- 5
- 17
0
votes
1 answer
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 the GPO to the OU I want it to target for testing, I…

wunjee
- 1
- 1
0
votes
1 answer
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 methods suggest defining routes with the interface…

molly
- 31
- 3
0
votes
3 answers
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
Once I execute this command sudo service run_pgd…

Lokesh Pandey
- 101
- 1
- 4
0
votes
1 answer
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 more than one LAN interfaces, and someone is…

schweik
- 263
- 2
- 9
0
votes
1 answer
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 our domain controllers that prevented sometimes…

frankhammer
- 137
- 1
- 5
- 15
0
votes
1 answer
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
# /etc/init.d/run.sh
#
# Some things that run…
0
votes
4 answers
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 time
i
sudo cp changework.sh…

Souhaieb
- 101
- 1
- 4
0
votes
1 answer
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. I don't have enough rep to post a photo. But it…

B-Dawg
- 101
- 2