0
votes
3answers
76 views

How to run a Phantomjs server with an upstart script?

I have phantomjs installed and I want to run a phantom server whenever the (Ubuntu) server starts. I am currently working locally on Ubuntu 14.04, and the server this will be deployed to is also ...
1
vote
1answer
100 views

Startup & shutdown scripts for Java servers

I am trying to design a graceful startup/shutdown script (Bash) for a Java app (JAR) that I will be deploying to my Ubuntu 14.04 server. I'm looking for a clean, Linux- and Ubuntu-friendly way of ...
1
vote
1answer
599 views

How to run bash script in upstart conf file?

I made bash script "kvm_manage". How should I write .conf script and run my bash script inside? It is possible? I am beginner..
1
vote
1answer
2k views

Creating a very simple upstart script

So I've been attempting to create an incredibly simple upstart script. I started with: console output exec /srv/scripts/test.sh But got this error: start: Job failed to start So I changed it ...
1
vote
0answers
333 views

“Normal” variables in Upstart

I haven't quite figured out, how to use "normal" bash variables in an Upstart script. Basically, I just want to do this. DAEMON="/usr/bin/redis-server" DAEMON_ARGS="/etc/redis/redis.conf" ...
0
votes
1answer
220 views

Init.d script problem

The init.d script is installed properly and by me i wrote the script correctly. But i have a very strange situation. The script executes a multi-threaded program written in c++ by me. If i execute the ...
2
votes
0answers
68 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that won't work because: That's bash ...
6
votes
1answer
705 views

Why don't custom upstart job names tab complete in the service command?

I'm used to create upstart services with a file in /etc/init/<service>.conf and it works perfectly fine, the only thing I'd like to is to have tab completion the same way that every service in ...
3
votes
2answers
736 views

How to create (via installer script) a task that will install my bash script so it runs on DE startup?

I've been reading for the last couple hours about Upstart, .xinitrc, .xsessions, rc.local, /etc/init.d/, /etc/xdg/autostart, @reboot in crontab and so many other things that I'm totally confused! ...
0
votes
1answer
103 views

Hide desktop startup screen

I am working on a hardware device running on Ubuntu. One of the most important features is good presentation - in my case not showing the OS startup screen etc. Currently I am using upstart to start ...
1
vote
1answer
2k views

Problem sourcing variables inside Upstart

I'm trying to use the variables defined in /etc/environment in an upstart script running on 12.04. I'm able to export the variable to the child process but for some reason I not able to use them in ...
1
vote
1answer
137 views

Is $RUN a built in command to execute?

I have a .sh script that starts a java service of mine (I didn't write this). Can someone explain how this actually executes? start() { .. .. # setup classpath . $ROOT/bin/_cp.sh ...
2
votes
3answers
2k views

How to determine status of upstart job in bash script?

How do you determine if an upstart job is running inside of a Bash script? That is I need a "boolean" value to do something like: #!/bin/bash if [ determine_if_job_x_is_running ]; then echo "I see ...
1
vote
4answers
4k views

How can I run this script on startup, restart, and shutdown?

I'm using Ubuntu 11.10. I've written a script, that synchronises a directory in ~ with a directory on /dev/sda4, using Unison. Before, I had this script running every five minutes with no problems, ...
3
votes
2answers
4k views

Running commands on boot in 11.10

So I am getting properly confused on how to create a startup script on my Ubuntu 11.10 server. I have read about init-scripts, upstart-jobs and more, but I get even more confused the more I read. ...
2
votes
1answer
833 views

Upstart scripting: Start service and immediately run another command

Here is my current Upstart script I've placed at /etc/init/redis.conf: description "redis server" start on runlevel [2345] stop on shutdown exec sudo /opt/redis/redis-server /opt/redis/redis.conf ...