Questions tagged [startupscript]

158 questions
25
votes
5 answers

Start up script for node.js repl

Is there a way configure node.js's repl? I want to require jquery and underscore automatically whenever the repl starts. Is there a file (noderc?) that node.js loads when it starts the repl? The equivalent in Python is to edit…
hekevintran
  • 22,822
  • 32
  • 111
  • 180
20
votes
3 answers

How stop systemd service

I am trying to create systemd service file for Flume, have created /etc/systemd/system/flume-ng.service with following contents [Unit] Description=Apache Flume [Service] Environment=FLUME_CLASSPATH=/opt/flume/current/lib/ ExecStart=/usr/bin/nohup…
roy
  • 6,344
  • 24
  • 92
  • 174
14
votes
3 answers

Cygwin startup script

How can I run a script inside cygwin after it launches? I want to automatically add some mounts and run other scripts inside cygwin whenever it starts. I see that in linux it is as simply as adding a shell file inside etc/init.d However, i tried…
codiac
  • 1,857
  • 4
  • 18
  • 31
13
votes
3 answers

$PYTHONSTARTUP with python 2.7 and python 3.2

I finally started using python 3 alongside python 2.7 on Linux. I setup my python shell using a startup-script defined by $PYTHONSTARTUP. Due to incompatibilities I am unable to use the same script for both versions. What is the easiest way to get…
mirk
  • 5,302
  • 3
  • 32
  • 49
9
votes
6 answers

Using ASDF to start Hunchentoot

I'm working on a web app using Hunchentoot (on SBCL and Linux), and usually I just run it from Emacs (SLIME), but for deployment I want something that's easier to automate. So I'm trying to figure out ASDF, because that seems to be what everybody's…
Ken
  • 511
  • 3
  • 4
7
votes
2 answers

How do I add a python script to the startup registry?

I'm trying to make my python script run upon startup but I get the error message windowserror access denied, but I should be able to make programs start upon boot because teamviewer ( a third-party program I downloaded ) runs every time I restart my…
Baboon
  • 307
  • 3
  • 6
  • 14
7
votes
1 answer

Detect google compute instance startup script finished?

In Google Compute Engine, when starting a virtual machine, an operation is created. When the operation is done, the virtual machine is ready (or the operation could have a failed status). However, my startup script (specified via startup-script-url)…
Jaap
  • 3,081
  • 2
  • 29
  • 50
7
votes
1 answer

startup-script not as root (google cloud compute, ubuntu 14.04 VM)

The default of the startup script is to run as root, I need to run the startup script as a specific user (the one used to create the image for the instance). I've tried all possible variations of su, etc, but when specifying that way, execution…
7
votes
3 answers

.net - How do you Register a startup script?

I have limited experience with .net. My app throws an error this.dateTimeFormat is undefined which I tracked down to a known ajax bug. The workaround posted said to: "Register the following as a startup…
mrjrdnthms
  • 1,549
  • 4
  • 24
  • 35
5
votes
1 answer

What's the right way to run startup task for Azure Virtual Machine

We are running node application in Azure Virtual Machine, meanwhile we also want to restart VM at some certain time with the help of Azure Automation (or via management portal). But how can we restart the node application after VM restarted? We…
4
votes
3 answers

Run Javascript After Page Load

I understand there are MANY posts on this, but I have tried every single one and none of them work! I have an aspx and aspx.cs page being run using visual studio 2010. on my aspx page I have a table
AlexMorley-Finch
  • 6,785
  • 15
  • 68
  • 103
4
votes
3 answers

Run a perl script at startup in Ubuntu

I have a perl script that I need to run once at startup with an argument under my user account. So when I boot the system up it needs to execute a command like this, ./path/to/script.pl start Any ideas?
BlackCow
  • 1,437
  • 2
  • 14
  • 11
4
votes
1 answer

Add startup-script while creating instance in gcp using golang

I am trying to create an instance with a startup-script in gcp using google.golang.org/api/compute/v1. However I am having some problems setting up the metadata to pass the startup-script. Link to a similar example. Link to do library…
adebrito
  • 51
  • 5
4
votes
1 answer

run custom init: Failed to spawn homepage main process: unable to execute: No such file or directory

I'm getting an error on my ubuntu 14.04 box, when I run my custom init script in /etc/init/homepage.conf I'm trying to run it via: sudo start homepage I keep getting: start: Job failed to start in the logs under /var/log/syslog: init: Failed to…
CodeTalk
  • 3,571
  • 16
  • 57
  • 92
4
votes
3 answers

How do I fix "Error: MONGO_URL must be set in environment" on ubuntu using forever and startup script?

I just deployed a meteor js app on an EC2 ubuntu server. I installed forever and added the following startup script to /etc/init/meteor.conf start on (local-filesystems) stop on shutdown script cd /home/ubuntu export PORT=80…
Scott
  • 1,322
  • 4
  • 23
  • 37
1
2 3
10 11