Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Development (http://www.linux-archive.org/debian-development/)
-   -   systemd service files as declarative daemon descriptions (Was: A few observations about systemd) (http://www.linux-archive.org/debian-development/554074-systemd-service-files-declarative-daemon-descriptions-few-observations-about-systemd.html)

Joachim Breitner 07-19-2011 08:35 AM

systemd service files as declarative daemon descriptions (Was: A few observations about systemd)
 
Hi,

Am Montag, den 18.07.2011, 10:49 +0100 schrieb Simon McVittie:
> * a tool that takes the same command-line parameters as a sysvinit script
> and implements them by parsing and running a systemd unit (which would
> result in sysvinit scripts that consist of LSB headers, plus one line similar
> to "exec not-really-systemd apache2.service "$@")
>
> (In fact, I wonder whether converting daemons' sysvinit scripts into
> a declarative format, then running them through a similar tool, would in fact
> give us more reliable sysvinit shell scripts than we currently have, even
> without replacing sysvinit :-)

there was once an attempt to define a declarative format for daemon
descriptions (http://wiki.debian.org/MetaInit) but it never took off.
The idea is still valid, though. And if the systemd service files are as
declarative as they should be, it should be possible to identify a
subset of supported options that can then be converted to sysvinit
scripts and upstart jobs.

This would not only greatly simplify things for daemon maintainers (as
they would not have to get their init script right, which is hard) but
also make it much easier to support multiple init systems in Debian.

Greetings,
Joachim

--
Joachim "nomeata" Breitner
Debian Developer
nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata


All times are GMT. The time now is 03:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.