Hi Ian, thanks for your answer.
The idea here is that I have an UPS that will send the shutdown command to the server when battery runs low to a certain amount I define. So power loss...
Type: Posts; User: rodrigomartinho; Keyword(s):
Hi Ian, thanks for your answer.
The idea here is that I have an UPS that will send the shutdown command to the server when battery runs low to a certain amount I define. So power loss...
Anyone could help with this?
http://upstart.ubuntu.com/
Upstart is the replacement of the System-V init for managing system boot and shutdown, so I am trying to accomplish this using upstart. That's why the script goes on...
I am running Ubuntu Server 14.04 LTS x64. I have two KVM guests. One is a file server and another runs mysql server.
I have a script that I run on the file server. The script connects via ssh to...
Anyone could help with this issue?
For instance, samba wasn't working, and I wasn't able to re-install it. I copied /var/lib/dpkg/info from second server to first, and after that I could re-install samba and it is working now, but...
I have another server which is pretty much similar to this I had the problem. I was making some upgrades on both, and on this second I didn't run into problems, so I'm pretty sure that I caused the...
Ubuntu Server 12.04.2 LTS installed by myself about 3 years ago.
Hello. I was having a problem with system upgrade that latter I found was caused by a full /boot partition. Before being aware that this was the problem (which is already solved), I tried some other...
I made further tests. Now I understood how rsa keys works and generated the needed ones for the passwordless ssh upload of the mysql dump.
After that, I had another problem with the rsync command,...
I made one test and it seems it worked! I just had a problem with permissions on the uploaded file, but that is a problem related to the rsync command itself, not with the Upstart script.
I will...
Hello andrei. Thx for your help.
Since Upstart is the replacement of init.d, I got interested in learning it. So I am firstly making the tests BkkBonanza suggested. Soon I 'll make your tests too....
Thanks for the help BkkBonanza.
I thought it would be easier to accomplish this. I'll need some more reading.
After further tests with mysql conf file and/or apcupsd I come back to tell the...
I read a little about Upstart, got an example script and made some tests.
This is the script I put on /etc/init:
description "dotProject backup"
author "Rodrigo"
#env HOME=/home/rodrigo...
Thx for the advice on Upstart. I will read about it and make some more tests. After them I come back to tell the results.
Ok, so it seems exit codes have nothing to do with controlling shutdown proccesses.
mysqldump doesn't take more than some seconds for this database. So I could use your suggestion and make many...
Hello LHammonds.
That's what I am thinking, the other shutdown processes go on, so my script isn't finished.
What I am looking for is exactly a way to make other shutdown processes wait for my...
Hello.
I am running Ubuntu Server x64 12.04. I have apcupsd properly running. I would like my server to run a script before it is shutdown by apcupsd.
Since I didn't find something specific for...
I did no changes, and server just started sending emails again, even for users other than root. I don't know why, but it is working.
I have made some more tests and notice I was messing some things up.
Firstly, cron wasn't working as should. As I could find searching other forums, cron really had a problem after upgrades in...
I have two almost identical servers running in diferent places. I searched my emails received from both, and I stopped receiving cron emails in both after this upgrade:
apticron report [Mon, 30...
Hello.
I have a Ubuntu Server 11.04 x64. My emails are sent via ssmtp.
Everything worked fine, but cron stopped sending emails.
ssmtp is working, as I can see by testing it on terminal (echo...
It would be good, but seems they gave up some months ago.We just got the post for ourself. :-)
It seems the same way to me, since it worked with a 2 disk raid1 without these further steps.
Holy ****!
Let me breath a little before trying this.
Later I'll post the results.