2
votes
2answers
165 views

Cron Job Creation

Solved Okay my answer was resolved with the help from the people in the comments (first cron job, so excuse the plethora of mistakes I made). I had removed all the comments in my cron table and ...
2
votes
2answers
42 views

Ubuntu equivalent of CentOS success / failure

A lot of services in CentOS look like this (except green and red, respectively): $ sudo service blah start Starting blah: [ OK ] $ sudo service notrunning stop Stopping notrunning: ...
3
votes
1answer
51 views

How to periodically back up a folder on change?

I want to achieve the following functionality in ubuntu but I dont know how to do it. I need a daemon that periodically backs up a directory, say dir to another location by doing the following: ...
0
votes
0answers
110 views

init service script is running twice

I have a init script under /etc/init/ to start up an application server. The problem is that it seems to be running twice. here is the command: exec su - deployer -c 'cd /home/deployer/app/current; ...
0
votes
2answers
326 views

how do I use upstart, instead of cron, to start a single instance of a job which should always respawn?

How do I script the following bitcoin/dogecoin/etc cpuminer command: /home/digger/cpuminer/minerd -o stratum+tcp://doge.pool.webxass.de:3333 -O <user>.<worker>:<worker_password> ...
0
votes
1answer
230 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 ...
0
votes
1answer
263 views

upstart job doesn't stop on “service something stop”

Could you guys please help with with Upstart script ? For some reason it cannot stop java process on service something stop. service status says bbb stop/waiting I'm trying to run my app which is ...
3
votes
1answer
371 views

Why is a group writable directory considered unsafe?

More specifically, why does libslack's daemon consider files that are being executed in a group writable directory to be "unsafe"? If you can give me an explanation of why group writable directories ...
3
votes
2answers
835 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! ...
1
vote
1answer
3k views

Upstart job fails to respawn and hangs when tried to stop/restart it

I'm using Upstart 1.5 in Ubuntu 12.04 to manage a process created by some user but needs to be managed as system job as starting on boot, respawning if it fails and we been able to start/stop it at ...
3
votes
1answer
447 views

How do I keep the Ubuntu One sync daemon from automatically starting up?

I have a Windows XP VM solely for the purpose of using Quicken. I have all my documents in my home folder including the Quicken files, to which the VM sees via a Samba share. If the Ubuntu One sync ...
2
votes
2answers
651 views

Init.d script gets return code 1 when calling itself, how can I get output?

My question is, how can I modify the script so that it will tell me what goes wrong? The scenario is this: I'm trying to get Sonatype Nexus to start as a service in Ubuntu 10.04, and it just will ...
0
votes
1answer
6k views

Create a service in linux using shell script

I want to create a service in linux as we do in windows. which i can start or stop with help of a script. the service has to launch a gaming application which has some dependencies associated with it. ...
2
votes
1answer
458 views

Have a parameter applied to service for Upstart

I want to run my webcit service with the -f option, how do I put that in the service script (/etc/init.d/webcit)? The lines that look relevant are: RUNDIR=/var/run/webcit ...
4
votes
4answers
4k views

Upstart script for a transmission-daemon executed as a normal user

I have done a script to start transmission-daemon as a normal user: start on filesystem stop on runlevel [!2345] respawn respawn limit 10 5 pre-start script test -x /usr/bin/transmission-daemon ...
20
votes
5answers
44k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
3
votes
1answer
2k views

Setting the owner of the file created by start-stop-daemon output redirection

I have the following line in do_start() of my custom init script that starts a java application: start-stop-daemon --background --start --quiet --oknodo --make-pidfile --pidfile $PIDFILE --chdir ...
2
votes
2answers
2k views

Custom daemon script: works, but does not run at boot / startup

this is Ubuntu 10.10 Maverick. I have the following shell script in init.d that I want to run as a "daemon" (background service with start/stop/restart really) at system startup. There is a symlink ...
7
votes
2answers
1k views

Getting a script to run on boot, not on login

How can I get a specific script to run (preferably not as superuser) whenever the machine boots, but before login. It can be the last thing to run on boot. I mostly just want the script to work even ...