On Thu, Apr 3, 2014 at 7:25 AM, Douglas J Hunley <[email protected]> wrote:
> I'm sure this is way more trivial than I'm making it out to be, but how in
> the world would one converty /etc/init.d/dmesg to a systemd service file?

Mmmh. Seeing [1], I really don't think that's a *service*. It's the
kind of abuse that SysV scripts usually fall into.

What do you want to accomplish? Less output in the console when
booting with systemd? Then you can set the quiet *kernel* command
line. If you want systemd to be more (or less) verbose, then you can
pass it different arguments in the kernel command line; see [2].

> Is there a good online pointer about building service files?

The guide in [3] is a start; but I don't think it will help you, since
/etc/init.d/dmesg is not a service. Is a hack to control console
output behavior jammed into the init system because why not.

Regards.

[1] 
http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=blob;f=init.d/dmesg.in;h=5b001fca7542ce7e003af30ca49fdf471efd8871;hb=HEAD
[2] 
http://www.freedesktop.org/software/systemd/man/systemd.html#Kernel%20Command%20Line
[3] http://0pointer.de/blog/projects/systemd-for-admins-3.html
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México

Reply via email to