Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

We are currently building an cool open source tool to be used as a linux service. so I begin writing an upstart script, But then I wondered, if debian/ubuntu world is moving to systemD, should I write a script for systemD? Upstart? Both? Are they compatible? If not, how do we handle the transition period (which I suppose would take a couple of years.. )

I'll be glad for advice and best practice about this. Thanks!

share|improve this question

3 Answers 3

In case anyone is wondering here is the blog about the announcement that Ubuntu will follow Debian's discission on changing from upstart to systemd.


The thing is: if you code something and want a larger user base than Ubuntu users it might already be wise to always include a systemd script. Redhat, SUSE, Gentoo, Arch already (can) use systemd.

If Ubuntu is the sole target you could stick with upstart and deal with systemd when the time is there to worry about systemd. That is going to take at least 6 more months so there is plenty of time.

And if you are lucky someone creates a conversion tool to automatically create a systemd script from an upstart script.


Basically: what ever you want do that ;-)

share|improve this answer

It's a hard one to answer because the developers have only just decided on their broad strategic approach to the shift to systemd.

This discussion took place at the Ubuntu Developer Summit last month, but I'm afraid I can't find a link to the video debate.

It looks like they are going to try to convert the work currently done by upstart into systemd tasks, almost like a wrapper to upstart. But that's just the first step to make sure that users aren't disrupted by the changeover, which is going to be done over quite an extended period of time, bit by bit.

As far as I understood the discussion systemd scripts will work normally, and upstart tasks will be made to work with systemd, so perhaps you would be better doing it all as a systemd task from the start.

share|improve this answer

Make your daemon so simple you can write both an upstart job and systemd service in 10 minutes! But yeah, I would say both. If you give me an example of how to start up the swamp daemon, I could write the Upstart job for you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.