Tagged Questions
0
votes
1answer
57 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
52 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
...
0
votes
3answers
139 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
2k 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
3k 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
509 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
...