Questions tagged [startup-scripts]

126 questions
0
votes
3 answers

unrealircd run at boot

I have UnrealIRCD installed on my CentOS server. I'm not too familiar with startup scripts, so I'm wondering if it's possible to have it start when the vps starts up, or if it crashes, as well as start the Anope services, too. Thanks.
Spencer
  • 1
  • 1
  • 1
0
votes
2 answers

What are best practices writing parallel startup scripts in Unix shell (ksh,bash)?

I have a piece of software with different components running on the same Unix machine (web server, DBMS, middleware, different daemons). Startup of the few components depends on the success of the start of the previous ones (like DBMS). Some of the…
0
votes
3 answers

Need a script that runs every OSX server restarts

I need to run a script every time my OSX server (10.5.8) the server restarts. The closest I could find was to add the script to my login items but this would only apply to one use and I need this script to be run whenever the server restarts to…
user16390
  • 201
  • 1
  • 2
  • 9
0
votes
2 answers

Where do I put a startup and shutdown task?

I have written the below program to notify me by email when my Linux system has been rebooted from a power failure. The way I do this is enableing power-fail recovery in the BIOS, and then register in a SQlite database every time the computer has…
Quandary
  • 1,024
  • 4
  • 19
  • 36
0
votes
0 answers

GPO: Startup PowerShell script on multiple OUs only running once

I have a weird issue with a PS script which should run on startup of a computer. This script is configured identical on three levels (OUs) only different parameters. Depending on for which hosts it's configured it should install certain things. On…
0
votes
0 answers

WMI Filter Does not Apply After Updates

I have a GPO with this WMI filter: SELECT Name From Win32_ServerFeature WHERE Name = 'Web Server (IIS)' The GPO has a startup script meant to modify a file to instruct the load balancer that the server is OK to send traffic to. Normally, when…
0
votes
0 answers

Created Startup Script but i'm not authorized to perform the requested operation

Startup Script #!/bin/bash #Short-Description: IBM ACE Control #Description: IBM-ACE start() { echo "Startovanje Queue Manager" /opt/mqm/bin/strmqm QMPROD1 #/opt/mqm/bin/strmqm %I echo "Startovan Queue Manager" >> /root/pom.txt …
Boro
  • 31
  • 5
0
votes
1 answer

Trying to start script but keep getting error syntax error near unexpected token `stop'

#!/bin/bash # case “$1” in start) echo -n “Starting Queue Manager” /opt/mqm/bin/strmqm QMPROD1 sleep 10 echo -n “Started Queue Manager” # echo “IBM ACE” …
Boro
  • 31
  • 5
0
votes
1 answer

GCE - Startup script - Can't use metadata anymore

Good evening, I've been trying to modify my Instance Startup script in Google Compute Engine, nevertheless with a new version of GCE (probably Dec 2021 or Nov 2021) the display has changed. Moveover it seems like we can't use a "startup-script"…
0
votes
1 answer

Running Powershell scripts pushed from AD GPO as admin on domain computers

Needed some help getting a simple task done at work. I have about 30 machines in my work domain that i want to run a power-shell script on at startup. I have created a GPO that runs the script on all machines at startup and all machines have the GPO…
0
votes
1 answer

running batch file as administrator privilege in clients with gpo(scripts/logon)

I want to run a batch file on all my domain clients via gpo(scripts/logon), but the problem is that to run a batch file, administrator privilege is required. I wanted to know is there any command or script to put the username and password of the…
0
votes
0 answers

GPO to detect if application is installed, if not install it and then create log file

@echo off IF NOT EXIST "C:\Program Files\APPLICATION_DIR" ( msiexec /q /i "https://www.SOME-WEBSITE.com/software/APPLICATION_NAME_x64.msi" LICENSE_KEY="LICENSE_KEY_GOES_HERE" && echo APPLICATION_NAME script install on %computername% >>…
0
votes
1 answer

Startup Script to Uninstall Google Chrome Not Working

I'm working with our sysadmin to uninstall Google Chrome on our network, which we manage via GPO. As it has been installed by the users themselves, by a GPO (which is now deleted) and manually by the IT Department, we thought that the best option is…
user620476
0
votes
1 answer

GPO Script - Logging/Tracking user acceptance - Windows Workstations

I am a developer with no prior experience with GPO scripting. I have a request to create a user acceptance policy that is logged when user accept it. (about 1000 Windows workstations in an AD domain) What I know so far is that creating a GPO script,…
0
votes
1 answer

Execute a script while boot up in RHEL7, not working

I have created below script in RHEL 7.6, but unfortunately getting EXEC format error. When i execute the command from working directory it's working fine. below is the service file which was created at /etc/systemd/system/zauto.service vi…
1 2 3
8
9