Questions tagged [startupscript]
158 questions
0
votes
1 answer
PowerShell: Another instance of Start-Process is already running
There are 2 PowerShell scripts that run at startup, 1 is in my control and the other is out of my control.
Both of our scripts use Start-Process. Strange issue is if both of our Start-Process's happen to execute at the same time, I get the…

Vippy
- 1,356
- 3
- 20
- 30
0
votes
1 answer
How to run java service as a non-root user on CentOs 6
I have a script that starts java application as a service on CentOs 6.
Here it is:
#!/bin/sh
# chkconfig: - 80 20
SERVICE_NAME=cn4server
PATH_TO_JAR=/usr/local/share/myserver/cn4server.jar
PID_PATH_NAME=/usr/local/share/myserver/cn4server-pid
case…

Fedorov7890
- 1,173
- 13
- 28
0
votes
2 answers
Subversion commands not being run by Ubuntu rc.local
Here is my rc.local for an autoscaling amazon ec2 instance based on ubuntu: (Note that user names, domains, and paths have been changed for security purposes)
logger "Begin rc.local startup script:"
logger "svn checkout"
sudo -u nonRootUser…

talentedmrjones
- 7,511
- 1
- 26
- 26
0
votes
0 answers
Run jar at linux startup from java
I want to run a jar file at startup. So i referred here. I ran the steps manually as indicated by Magpie, i e., using autostart and it worked without problem. But I tried the same in java, i e., from creating script to copying the file to…

Joker
- 81
- 12
0
votes
1 answer
Debian - NGINX startup job (initd) doesn't stop
I just compiled the last Nginx version (1.7) on my debian 7.4 machine based on different web posts and docs merged here. It works fine.
I also need to change the startup job to target the new Nginx executable. The result is that I can start but…

Emmanuel BRUNET
- 1,286
- 3
- 19
- 46
0
votes
1 answer
Set Site Permissions for a Role Programmatically Liferay 6.2
I am creating a startup hook script for liferay to add and preconfigure Roles for Liferay 6.2 behind the scenes.
Specifically I am looking to add the type of permissions that can be accessed through Control Panel > Roles > Actions> Define…

zeeble
- 11
- 1
- 4
0
votes
1 answer
Azure Startup.cmd unable to bind to localhost
Out of the box Azure Web Role seems to bind the website to specific IP Address. As a part of deployment, we need to bind the website to listen to localhost or 127.0.0.1.
I've configured my service definition as below:

Nil Pun
- 17,035
- 39
- 172
- 294
0
votes
1 answer
How to start a rails app automatically in user enviroment after system reboot?
Rails apps on server are started automatically via /etc/rc.local, i.e.:
thin start -p 8000 -c /usr/local/src/app1/curr -d -e production
In addition to above, I'd like to start some apps in a particular user's environment. Typically those are apps…

ohho
- 50,879
- 75
- 256
- 383
0
votes
1 answer
Loading Multiple JS variables up using RegisterStartupScript
I need to get multiple variables up into my JS code from my C# backend (ASP 2.0). Currently I use the following code
string js;
if (swapSize == null && VMWare == null)
js = "var stackedUnknownExemptCheck = " +…

Splashlin
- 7,225
- 12
- 46
- 50
0
votes
2 answers
Powershell Startup script for printer deployment through GPO
I am trying to deploy printers to the PCs in my organization through a powershell script. The script itself is deployed through group policy to run on machine startup. When a machine in the test OU boots it will sit at please wait indefinitely and…

rtranchilla
- 47
- 12
0
votes
1 answer
Create python script that runs at startup
Background
I need to create a python script that runs at start-up. The problem is that this script must be platform independent because it will be used on different operating systems. It needs to be an automatic set up because it will be run by the…

taylor
- 49
- 4
0
votes
1 answer
Azure startup.cmd add new user script
I have a simple startup.cmd script which runs some net commands to create a new user and add the user to the administrator group.
I got the script from this blog. I have run the net commands in a elevated CMD session and they work correctly. but…

Andrew Harry
- 13,773
- 18
- 67
- 102
0
votes
1 answer
Linux start screen on startup
I'm trying to start a screen session on startup, so I added my script at the end of rc.local
screen -S ws sh -x /var/includes/websocket/start.sh;
But that doesn't work. My goal is to be able to run in a screen session (screen named ws) 2…

exomic
- 466
- 6
- 16
0
votes
1 answer
Create a startup script for running VNUML
For creating the VNUML simulation containing specific number of devices we use
vnumlparser.pl -t -u root -w 100
But I am unable to run this using a start up scripts I have made in the location /etc/rcS.d/ directory.

Sid
- 245
- 7
- 18
0
votes
1 answer
Error starting gnome-terminal from /etc/rc.local ubuntu 12.04
I am unable to start gnome-terminal from rc.local , with the following error.
** (gnome-terminal:1304): WARNING **: Command line `dbus-launch --autolaunch=bd53fdd726adb41172f458c100000007 --binary-syntax --close-stderr' exited with non-zero exit…

Sujithra
- 527
- 1
- 6
- 14