Ubuntu :: How To Create A Startup Daemon
May 25, 2010
I installed ActiveMQ, set up an init.d script and was able to start | stop | restart ActiveMQ from the init.d script. However, when I tried to use:
>sudo chkconfig --add activemq
upstart seemed not to like it. Having NO documentation on how to create a daemon that works with Upstart on the Ubuntu forums, I'm wondering if anyone has any idea why my init.d script doesn't convert.I'm using Ubuntu 10.x.x but this happens on 9.x.x also.
Here is my script..
Code:
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: activemq
[code]....
View 2 Replies
ADVERTISEMENT
Apr 1, 2011
I've tried the following in rc.local but it gets me nowhere:
Code:
TRANSMISSION_TIMING() {
for((a=0;a<=5;a++)); do
sleep 1 &
wait
[[ $(top -n1 | grep transmission) == *transmission* ]] &&
[[ $(date +%H) -ge 5 ]] && [[ $(date +%H) -lt 23 ]] && /etc/init.d/transmission-daemon stop done
}
TRANSMISSION_TIMING &
Code:
TRANSMISSION_TIMING() {
[[ $(top -n1 | grep transmission) == *transmission* ]] &&
[[ $(date +%H) -ge 5 ]] && [[ $(date +%H) -lt 23 ]] && /etc/init.d/transmission-daemon stop
}
TRANSMISSION_TIMING &
Nothing I do can keep this thing from launching, and apparently kill it either.
View 1 Replies
View Related
Jan 26, 2010
i am succesfully installed TeamSpeak 3 server and now i want to startup it automatically without screen daemon and on every startup on linux ubuntu 9.10 i am using this command for start the TS3 server:./ts3server_linux_amd64 dbplugin=ts3db_mysqlin home/user/Desktop/ts3server_linux_amd64
View 4 Replies
View Related
Jan 23, 2010
I'm having some problems getting my screensaver to work automatically.If I start the screensaver config program then it gives me this message: "The XScreenSaver daemon doesn't seem to be running on display ":0.0". Launch it now?" If I click yes then my screensaver works exactly as expected.How can I get the XScreenSaver daemon to start automatically?
View 3 Replies
View Related
Mar 25, 2009
I used my boot disk in rescue mode to solve this, but I would really like to know how to do this the easy way.
Question: when I am booting up and getting all those "OK" green remarks, how do I cancel a daemon that freezes instead of giving me an ok or failed? I have tried <Ctrl><C> with no joy. I have tried dropping to interactive mode ("I") and bypassing the bad daemon, but interactive mode freezes when I go to start GDM, so no joy there either.
View 15 Replies
View Related
Oct 31, 2010
I've added httpd to runlevels 2-5 using chkconfig, and also double checked it using ntsysv, but it still won't run on startup, even though it works just fine when started manually (using "sudo service httpd start").The results of "chkconfig --list httpd" show it is on for levels 2-5, and I've confirmed the current runlevel to be 3. I've found no errors in the logs (neither Apache's nor the system's), but maybe I'm looking at them wrong...My machine is a VPS (on VMWare) running CentOS 5.5 32bit. For additional information, see the output of getinfo.sh: http://pastebin.centos.org/35570I would greatly appreciate help on this, as it is delaying our NGO from moving servers.
View 3 Replies
View Related
Apr 21, 2010
I would like to know if is it necessary(and why) to use setsid to create a session leader in order to create a daemon process?
View 1 Replies
View Related
Apr 9, 2010
I am use to microsoft products. In microsoft windows, I can make a batch file that says to delete a file on the desktop during startup. would like to create a "batch file" or command that runs at logon in Ubuntu. An example:f I wanted to delete a certain file on the desktop called "new.pdf" everytime I logon,Could I make some kind of file the has the commands "rm new.pdf" in it and run it as a file during login?
View 5 Replies
View Related
Apr 22, 2010
What I want to do is create a custom live USB startup of ubuntu.
I know how to create a usb startup from the iso (any ubuntu iso), with the usb startup disk tool.
Is it possible to add some software to it, for example suppose I want it to have exaile and wireshark (or any software) already installed.
How can I do that ?
View 3 Replies
View Related
Oct 10, 2010
Firstly, what's the best way to execute commands on startup, cron? Can I use su in a shell script to switch between different users, if so how?
How do I create several detached screen sessions on startup? screen -A -m -d -S test ./script.sh seems like it should work but using it in a script started by cron doesn't show any screen sessions running after booting.
It looks like the screen session is closed after the command finishes executing, can I keep it open so I can see the output?
View 3 Replies
View Related
Dec 30, 2009
i want to start /usr/bin/brscan-key at startup. since i find it handy to push on the scan button , and the scanner is saving the scanned image to my pc.
can i add /usr/bin/brscan-key at /etc/rc.local on a safe way?
View 3 Replies
View Related
Jul 9, 2011
I am currently in place where I get high speed internet connection. I am using F15 64 bit version. I've installed a lot of softwares and updated theOS completely. My question is is there any way that I can create a startup disk of my system so that I can install it in other system of same configuration.
View 1 Replies
View Related
Mar 31, 2011
I'm looking to run a program automatically on boot (but before login). I was think to add this to rc.local but it would appear that this file doesn't exist in Angstrom. Where should I put my script?
View 4 Replies
View Related
Jan 7, 2011
An uncaught exception was raised: [Errno 13] Permission denied: '/media/e6f6ac46-4bfc-487b-9c81-aab706ead9e3/boot'
The above is the error message I get when I try to create an usb-flash boot drive. I downloaded the iso for Mint10 and use the "create startup disk" program to create the boot drive. I can see both the iso and the flash drive within the program, but when I click on "create disk" I get the above error message?
View 7 Replies
View Related
Jun 13, 2011
At the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.
View 8 Replies
View Related
Feb 19, 2010
but it said "daemon tools installed" so i think they are installed, but i cant find em anywhere in program center :/ im using newest version of ubuntu
View 7 Replies
View Related
Aug 4, 2011
I recently bought an host to have a personal website and would like to create a bash script to create make a mirror copy of it and then add it to crontab to run once a week. Essentially what I want to do is to get the website by using wget -m ftp://user***@ftp.host/mydir
Once this is done I'd like to have everything in an archive called mysite.date.tar.7z I've no experience at all of bash scripting but I guess this should be an easy task? How to make the user and password not visible ? Is there any other option better than wget? (maybe rsync it works better?)
View 2 Replies
View Related
Oct 28, 2010
When using the gparted option to create a new partition table does this automatically create a new mbr?
View 1 Replies
View Related
Sep 2, 2010
gdevils pie daemon won't start. in lucid, i open from term and get the following errors
pyramid@Pyramid:~$ gdevilspie
** (gdevilspie:210: WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags'[code].....
gdevilspie opens fine, and I can select and save rules, but it won't start.
View 9 Replies
View Related
Jan 17, 2011
I'm trying to connect the Deluge GTK UI to the daemon running on the same system. This worked just fine previously, but for no apparent reason I can't connect now. I have Deluge set to autoconnect on startup, but it doesn't. If I open the connection manager, it says the daemon isn't running (which isn't true; I checked), and trying to start or connect to the daemon from there does nothing.I get the following errors from deluge:
Code:
[ERROR ] 16:12:11 gtkui:343 Connection to host failed..
[ERROR ] 16:12:32 gtkui:343 Connection to host failed..
[code]....
View 1 Replies
View Related
Feb 24, 2011
While watching the text scroll by as I shut down I noticed that there is a PostgreSQL Daemon running somewhere. The question I have is, how do I add myself and my own database to this daemon or do I need to run one on my own user?
View 2 Replies
View Related
Apr 10, 2011
i am trying to daemonize my (java) program on ubuntu. For that end i created a script based on /etc/init.d/skeleton script which obviously uses start-stop-daemon.
But I cannot make the process (java program) run on the background. it keeps running in the same terminal i start my daemon script. Trying --background option for start-stop-daemon does not help.
View 5 Replies
View Related
Jul 8, 2011
I set up MRTG on my ubuntu 10.10 using this link:[URL]...Now, i am trying to set it up so it refreshes every 5 minutes... I tried program scheduled task be entering /etc/init.d/mrtg start but it does not work... I also added the RunAsDaemon: Yes line to mrtg.cfg file but still nothing. It works fine from the terminal but not from the program...
View 6 Replies
View Related
Aug 11, 2011
I'm creating a script that I want to run every time any user logs in (not only on the GUI, but also via SSH or via text terminal). The script will check if a daemon program is running (one per user or per session, haven't decided yet) and, if it isn't, will start it. I want this to be system-wide, not per-user. I thought about using /etc/profile (or creating a file in /etc/profile.d/) for CLI logins and /etc/X11/Xsession (same remark, Xsession.d) for GUI logins. My problem is that if the user uses a non-Bourne shell (e.g. TCSH) this won't work. Is there any initialization script that is run no matter what shell the user has?
View 2 Replies
View Related
May 30, 2010
what could cause the daemon to use 100% of the CPU? I attached a printed screen file of "top".I am using "likwise" to connect to AD.
View 3 Replies
View Related
Jan 18, 2010
Still trying to get my openVPN running.I can get the daemon running from terminal but nothing is configured. I copied my config file over from Windoze partition. My openVPN works flawlessly on both my windoze boxes.
Following this but came to another dead end when Im instructed to: Next, edit /etc/openvpn/easy-rsa/vars adjusting the following to your environment:
export KEY_COUNTRY="US"
export KEY_PROVINCE="NC"
export KEY_CITY="Winston-Salem"
export KEY_ORG="Example Company"
export KEY_EMAIL="steve@example.com"
I cant edit that,I tried but its a 'read only'. Are these instructions designed for long time users?
View 9 Replies
View Related
Feb 15, 2010
I am trying to use my Apple Remote Controller that came with my iMac 4.1. I did some research and on the Ubuntu site it said that its possible with a application called Infrared Remote Controller. It detected from the hardrive which version I had etc but than a error message appeared on the bottom saying:
Warning: Remote control daemon not running.
How can I activate this? I included a screenshot!
View 1 Replies
View Related
Apr 21, 2010
I'm running an up-to-date installation of Lucid, and have come upon a little problem. It seems that applications are having trouble communicating with gnome-keyring-daemon.
When I connect to wireless networks -- even ones that are in the network manager -- it always asks me for a password.
Gwibber is crashing because it can't connect to the gnome keyring daemon.
And when I open the Passwords and Encryption Keys utility (on the Accessories menu), I get the error: "Couldn't communicate with key ring daemon."
I have verified that the daemon is starting up when I log in, that all of the appropriate keyring-related login items (certificate and key storage, secret service, & SSH key agent) are in place, and that the keyring works in other accounts on my machine. I have tried deleting my extant keyrings, but that has produced any success. And when I kill and restart the keyring daemon once I'm already logged in, the problem seems to abate.
I don't know if it matters, but for OS X compatibility purposes, I'm running as a UID under 1000.
View 9 Replies
View Related
May 4, 2010
I've just upgraded to 10.04. I love it. I've been running dark themes for a long time and this upgrade merged seamlessly with my setup.There is a nasty problem that I've noticed on only my desktop box (laptop is fine, also upgraded to 10.04). The dbus-daemon is hogging approximately 50% of my cpu cycles. Is there a way to limit this? I'm watching this via the System Monitor and the % CPU. My laptop registers its dbus-daemon % CPU as 0.
View 3 Replies
View Related
May 27, 2010
I have a test server on which I'd like to run up to 30 separate instances of a program as daemons, each running on a different IP address bound to the server. I've created a init script that takes an additional command line parameter - the last octet of the IP address. For example:
Code:
sudo myprog 40 start
sudo myprog 41 start
This would run instances of the program on IP addresses 192.168.1.40 and 192.168.1.41 respectively. But it's looking like this approach isn't doable if I wish to have any or all of these run at startup, as the links in the rcN.d directories can only link to the init script, not pass a parameter.
View 2 Replies
View Related