Tag Archives: ubuntu

Writing Upstart Script for Forky Java Application

As you probably know, Canonical replaced traditional init scripts with Upstart jobs in Karmic Koala(9.10). Although you can still run “old school” scripts, it is encouraged to write a proper upstart config for your application.
Maybe Upstart can start daemons asynchronously, but it has currently one major disadvantage – you can’t specify a pid file and it can’t track PIDs, if a program forked/cloned itself more than twice during launch. I needed to write a upstart script for such app and it took me some time to figure a workaround, which I will describe here. Continue reading Writing Upstart Script for Forky Java Application

Cron Problems in Ubuntu

I have spent about 2 hours today trying to figure out, why my cron jobs, which were placed in /etc/cron.d, are running fine on Gentoo, but fail to start on Ubuntu. You can’t possibly imagine, how shocked I was, when I found out that the problem was “.”(dot) which was present in names of the files. Simple dot makes vixie-cron’s implementation in Ubuntu to ignore a file! I don’t know whose idea it was to introduce such a “feature” in Debian/Ubuntu, but I would suggest some severe corporal punishment for the responsible person.

Small Addendum

Few days ago I converted one more 12.04 LTS host to Precise/Raring hybrid and my results were slightly different from my previous experience. Both systems were stable, no problems here, but I needed to install/update some additional packages, which were not required in the first case. So, my updated /etc/apt/preferences.d/libvirt file contains additional lines:

Package: libtasn1-3
Pin: release a=raring
Pin-Priority: 990

Package: qemu-kvm
Pin: release a=raring
Pin-Priority: 990

Package: qemu-common
Pin: release a=raring
Pin-Priority: 990

As for stability – it’s like I said – I have no complaints so far.

Testing new libvirt features on Ubuntu 12.04

If you are like me and you want to experiment with cutting edge virtualization technologies on LTS version of Ubuntu(12.04 aka Precise Pangolin), you will soon find out that this is not so easy. But, of course, it is still possible. First of all, keep in mind that to achieve this, you will be turning your stable LTS system into unstable one and I can’t guarantee that everything will work as expected or work at all. You have been warned… 🙂 Continue reading Testing new libvirt features on Ubuntu 12.04