Ubuntu Servers :: Starting Mysqld_safe With Upstart?
Nov 11, 2010
From what I've read, it appears that the respawn stanza in /etc/init/mysql.conf would give me the restart option if the daemon crashes, but I want to make sure other safety features of mysqld_safe are present as well.My /etc/init/mysql.conf is the original. I've tried changing the exec stanza from /usr/sbin/mysqld to /usr/sbin/mysqld_safe but the job fails when I sudo service mysql start.mysql.conf
Code:
# MySQL Service
description "MySQL Server"
[code]....
View 1 Replies
ADVERTISEMENT
May 24, 2010
I'd like to reconfigure vsftpd so that it does not start on boot (and I can enable/disable it using service vsftpd start/stop).
Though I've seen posts in the forums that stated that upstart jobs can be disabled by moving the /etc/init/job.conf file, other sites commented that the original file will be recreated on updates.
The other two suggestions were to alter the upstart script such that either the process starts on never:
Code:
start on (never
and filesystem
and net-device-up IFACE!=lo)
stop on runlevel [!2345]
[Code]....
View 2 Replies
View Related
Jan 9, 2011
I have posted this somewhere here before and solved it but can't seem to find it. Just waisted 50 minutes googling and checking man pages for upstart. By the way; are man pages written by someone using their tows to type and getting beaten by a stick for every character they type? It seems missing a lot of info. Anyway, I know smbd is started with /etc/init/smbd.conf and there is a line like:
Code: start on local-filesystems Now it needs to be started on? (manually) I can't seem to find any useful information but did seem to find the upstart man pages a hundred times or so (same info same missing parts). I would love to get involved writing documentation for these things if only I know what I was doing.
View 3 Replies
View Related
Apr 24, 2010
Like the title stated Anyone with experience or suggestion, please do share. I've tinkered all night with this thing. Never get the VBox service I created to start.Here is my final code before I dried my brain.
Code:
# Archayl Server startup
#
[code]....
View 1 Replies
View Related
Apr 30, 2010
Where can I find a list of services converted to upstart in Ubuntu 10.04? What is the syntax for stopping, starting and restarting these services?
View 6 Replies
View Related
May 9, 2010
mysqld not running on boot, I can start it manually with
Code:
sudo -u mysql mysqld
If I attempt to start it with Upstart I get
Code:
dom@mythbox:~$ sudo start mysql
start: Job failed to start
View 1 Replies
View Related
Jun 2, 2010
Has anyone got a working apache upstart script? I'm running 10.04, and want the nice supervision stuff from upstart to run my apache instance. I've googled (especially for things like replacement-initscripts) but not hit anything concrete.
View 5 Replies
View Related
Aug 18, 2011
For the last umpteen years of my life, I've restarted the ssh daemon using code...
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the restart utility, e.g. restart ssh code...
View 7 Replies
View Related
Feb 21, 2011
before login form appears while booting slackware, my pc gets into this error loop: mysqld_safe error. And there is no way to stop it. My cdrom is broken so I cant run slakcware 13.1 dvd to see if I could do smth. How can I repair this.
View 2 Replies
View Related
Apr 7, 2011
I've got an Ubuntu Server 10.10 with Bacula. Bacula is not using Upstart at boot time, it is started using legacy init.d scripts. MySQL on the other hand uses Upstart. This causes MySQL to start after Bacula, thus preventing Bacula director from connecting to the MySQL database - causing an error.I've tried to change the order of the init.d scripts in /etc/rc2.d, giving mysql the prefix S20 and bacula prefixes ranging from S90-S93, but to no avail. The bacula scripts are still loading before MySQL. how to configure the order of boot scripts when using both Upstart and legacy init.d scripts?
View 1 Replies
View Related
Nov 29, 2010
I have set up a new IP specifically for SSH and configured SSHD_Config accordingly to listen on this new interface and a specific port. However when I reboot SSH is not starting. Looking in the syslog it shows that it is unable to start. It looks like its trying to listen on the interface before it is set up.
Code:
Nov 29 13:00:23 anubis init: ssh main process (601) terminated with status 255
Nov 29 13:00:23 anubis init: ssh main process ended, respawning
Nov 29 13:00:23 anubis init: ssh main process (610) terminated with status 255
Nov 29 13:00:23 anubis init: ssh main process ended, respawning
Nov 29 13:00:23 anubis init: ssh main process (618) terminated with status 255
Nov 29 13:00:23 anubis init: ssh respawning too fast, stopped
I am able to start SSH manually once the server is booted. Do I need to set up my interfaces differently to ensure they are available prior to SSH starting somehow? I don't want to change my ssh config to listen on all addresses.
View 9 Replies
View Related
May 20, 2009
How can I start multiple X servers by logging into same user and using same desktop environment like KDE or GNOME. Is this possible by editing .xauthority, .xinitrc etc files?
View 1 Replies
View Related
Jan 15, 2010
My mysql server won't start on my machine. It simply fails with no errors.
Code:
sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
When I run cat /var/log/mysql.err the file is empty, thinking this might be a permissions issue
I tried chowning to a mysql user. Here's the current permissions.
Code:
ls -alh /var/log/mysql*
-rw-r----- 1 mysql adm 0 2009-09-30 11:08 /var/log/mysql.err
-rw-r----- 1 mysql adm 0 2010-01-15 09:07 /var/log/mysql.log
-rw-r----- 1 mysql adm 20 2009-11-25 07:35 /var/log/mysql.log.1.gz
-rw-r----- 1 mysql adm 20 2009-11-24 07:59 /var/log/mysql.log.2.gz
-rw-r----- 1 mysql adm 20 2009-11-23 07:56 /var/log/mysql.log.3.gz
-rw-r----- 1 mysql adm 20 2009-11-22 07:54 /var/log/mysql.log.4.gz
-rw-r----- 1 mysql adm 20 2009-11-21 07:47 /var/log/mysql.log.5.gz
-rw-r----- 1 mysql adm 20 2009-11-20 07:43 /var/log/mysql.log.6.gz
-rw-r----- 1 mysql adm 20 2009-11-19 07:35 /var/log/mysql.log.7.gz
/var/log/mysql:
total 8.0K
drwxrwsrwx 2 mysql adm 4.0K 2009-09-30 11:08 .
drwxr-xr-x 16 root root 4.0K 2010-01-15 10:24 ..
Still having the same issue, mysql server is still failing and /var/log/mysql.err is still empty.
View 3 Replies
View Related
Apr 10, 2010
I am having problems with bond0 starting at boot on ubuntu server 9.10. After I do a restart I have to manually start the network with "ifup bond0". I have installed the built package (ifenslave-2.6_1.1.0-15ubuntu1_i386.deb (as indicated in Bug #482419)).
I have setup bonding for mode=6 with miimon=100 using eth0 and eth1 (both are Intel 10/100/1000 ports using an aic79xx network driver).
The contents of the aliases file are:
alias bond0 bonding
options bond-mode=6 miimon=100
The contents of the interfaces file are:
auto bond0
iface bond0 inet static
address 192.168.15.60
netmask 255.255.255.0
gateway 192.168.15.1
slaves eth0 eth1
bond-mode 6
View 9 Replies
View Related
Jun 23, 2010
I have it downloaded (linux version). What folder should I put it in?? Does it matter?
I am new to bash so i dont know how to start the Ventrilo Server up.
I navigated to the folder the server is in and did ./ventrilo_srv and ./ventrilo_srv -d and they both come up "No such file or directory".
View 2 Replies
View Related
Jul 10, 2010
How would I make sure cron is running every time my server is turned on? I want to make cron jobs, but I need to know that it is running when the server boots. Also, I used a program at some point that was terminal based and it showed be what programs ran when the server booted up. It allowed me to check a box and select which programs I could run at boot. If someone could tell me this program,
View 2 Replies
View Related
Sep 29, 2010
I have a server running 64bit lucid and while trying to get a script to run on boot to start Davmail I appear to have broken something. I have webmin installed but I have been trying to do the majority of things via the command line. I now have davmail starting at boot but a lot of other services don't start anymore, including apache, mysql and webmin. Fortunately SSH still works and I can start apache and webmin from the command line without any problems.
View 1 Replies
View Related
Nov 24, 2010
I'm starting several VMs on a remote headless ubuntu server via ssh using:
Code:
VBoxHeadless -s <vmname>
The VM starts up okay, and I'm left with an occupied command terminal on my local ubuntu machine. So, if I want to start up several VMs on the remote server, I have to open up several command terminals and end up with as many occupied terminals once they're all running. When the local terminal is closed, the remote VM is also shutdown.
Is there a better way to do this without the remote VM being dependent on the local terminal? I'd like to remotely startup the VMs and be able to close the local terminals without shutting down the VMs. I'm sure this must be possible, I just don't know how to do it.
View 5 Replies
View Related
Dec 8, 2010
What is the proper way to stop tftpd from starting up? There is no numbered rc script symlink for it so I can't use update-rc.d. I don't want to just hack a file unless that is considered "the way".
View 4 Replies
View Related
Mar 2, 2011
Since I have not gotten anything on the "General Help" I am posting this here: When a Ubuntu 10.10 I have starts up apache2, MySQL and postfix start properly but bind9 doesn't. Once booted is I run 'sudo /etc/init.d/bind9 start' it starts. The only thing odd on this system is I have a "inet6 v4tunnel" interface defined in my /etc/network/interfaces. From booting in the syslog there is:
Code:
/var/log/syslog:Feb 28 19:02:42 ubuntu named[1029]: starting BIND 9.7.1-P2 -u bind -d 9
/var/log/syslog:Feb 28 19:02:42 ubuntu named[1029]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind'
[code]....
Even with the bind debug level at set at 90 I do not get any more in the logs that what I posted before. The lack of errors in the logs is giving me no idea where to start. I commented out the IPv6 tunnel interface and rebooted and still no help. bind still is not starting at boot. OK, it is not a permissions issue, I have changed the config and zone files to be owned by bind:bind, root:bind, root:root and bind:root and it has made no difference. Doing a fresh install on a Virtual Box VM and configure it in a similar manner bind9 starts normally. (I am almost to the point where I will rebuild the box)
View 9 Replies
View Related
Feb 7, 2010
I have an installation of F12 where I used VMM to create and run four virtual machines.
If I set the machines to start at boot in VMM, but set my host to not boot all the way into X, the VMs don't boot.
IS that suppoed to be that way? Does VMM's auto-boot of VMs depend on some X or GNOME stage?
If so, what's the best way to fire up the VMs such that it doesn't conflict with any subsequent use of startx? (Don't eant to end up with double the machines just because I had a need to fire up X on the host.)
View 1 Replies
View Related
Feb 12, 2010
how do I start a ruby on rails application when my Ubuntu server starts up/is rebooted? I start the application by cd-ing into the ruby application's root directory(the application I'm using is Bibapp) and execute the command;
Code:
sudo rake bibapp:start
View 1 Replies
View Related
Mar 14, 2010
I have a file server running samba 3.4.0. I just upgraded ubuntu to 9.10. The upgrade was unfortunately stopped in the middle, but I think I managed to complete it.The problem is that now samba will not work after a reboot. The daemons are running, but any attempt to connect from a windows machine fails (Windows 7: the network path was not found). Manually restarting the service fixes the problem, but I need a more stable solution!Interestingly, I can ssh to the machine, or rdp to a virtual machine running on it.The logs don't seem to report any error:
Code:
stefano@SERVER02:/var/log/samba$ tail log.smbd
[2010/03/14 04:02:11, 0] smbd/server.c:1068(main)
[code]....
View 5 Replies
View Related
May 12, 2010
I am trying to get SQL-Ledger installed and running on my computer, which needs PostgreSQL installed to run.Currently, I am having trouble with it starting at boot-up. How can I access the appropriate log files in order to figure out what's wrong?
Also, I need to know what httpd is, and who the owner and groups using that might be on my system.
View 4 Replies
View Related
Jun 11, 2010
so my servers 7 hds in raid 5 all was working well until one of them died. The HD that died sort of works it can read like half a file also freezes on the benchmark test in disk utility. Unfortunate when i take it out on boot it says. The drive for /media_kbt is not ready or present press s to skip or m for manual recovery. I hit s and then go to disk utility. But i can't start or add disks to the array.
Here is me trying to do random stuff
Code:
administrator@3dslice-host:~$ sudo mdadm --stop /dev/md0
[sudo] password for administrator:
mdadm: metadata format 00.90 unknown, ignored.
mdadm: stopped /dev/md0
administrator@3dslice-host:~$ sudo mdadm --add /dev/md0 /dev/sda1
mdadm: metadata format 00.90 unknown, ignored.
[Code]...
View 2 Replies
View Related
Jul 15, 2010
Anyone know how to stop the pureftpd starting up automatically? I've tried the usual in /etc/init.d/pureftpd but it still starts and I need to log in and close it in the admin UI or in terminal.
View 2 Replies
View Related
Jul 26, 2010
So recently my MySQL server doesn't startup when Ubuntu boots (it used to) and therefore causes database errors with my Web applications. How do I add MySQL to the run at startup list?
View 1 Replies
View Related
Aug 4, 2010
I've installed Sun Java, tomcat6 and tomcat6-admin on 10.04 server 64-bit. By default, tomcat is configured to run as the tomcat6 user. Everything runs just fine on tcp/8080 as initially configured. Modifying the connector port in /etc/tomcat6/server.xml to anything below 1024 (e.g. port 80) results in:
SEVERE: Error starting endpoint
java.net.BindException: Permission denied <null>:80
This all begs the question... do you *really* have to run tomcat as root to bind to a well-known port? I.e. is there really no way for tomcat to start as root, bind to a privileged port and then drop privs?
View 6 Replies
View Related
Feb 23, 2011
I have installed KDE and all the software for it to run on my server through the serial console but when I go and run "startx" I get the following and KDE doesn't start running.
root@u15434060:~# startx
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-28-server x86_64 Ubuntu
[Code].....
View 1 Replies
View Related
Apr 12, 2011
I recently followed a tutorial on how to get OpenLDAP running with Samba on Lucid. It worked pretty well.Here's my very frustrating problem with it. For the first 5 - 10 minutes after rebooting, password handling (possibly PAM?) is hosed, including for users in LDAP authenticating via Samba.In fact, I think the only reason I can SSH into the machine during that window is because I happen to have certificate authentication enabled and my client uses that.When I try to do a sudo command after logging in, though, and have to enter the password, it hangs. I've searched logs and haven't come up with much.I *think* it's related to this bug, but I'm not sure.And here's what's killing me ... it's not easy for me to figure out how to ensure that slapd starts before smbd and rsyslog (I read somewhere else that it needs to start before that for some reason) b/c most of the jobs are upstart jobs, but slapd is not.By default it runs at S19 in rc2.d, and I've tried manually lowering that as far as S05 or S07, but I'm still having trouble.
View 1 Replies
View Related