F15 Feature - convert as many service init files as possible to the native SystemD services

Michał Piotrowski mkkp4x4 at gmail.com
Fri Nov 26 15:18:56 UTC 2010


2010/11/26 Tomasz Torcz <tomek at pipebreaker.pl>:
> On Fri, Nov 26, 2010 at 03:42:33PM +0100, Michał Piotrowski wrote:
>> Hi,
>>
>> How to start things that really are not demons?
>>
>> Amtu seemed to be a simple service to convert
>>
>> [Unit]
>> Description=Abstract Machine Tests
>> After=syslog.target
>>
>> [Service]
>> EnvironmentFile=/etc/sysconfig/amtu
>> ExecStart=/usr/sbin/amtu $EXTRAOPTIONS
>>
>> [Install]
>> WantedBy=multi-user.target
>>
>> This service runs for a few seconds and exit.
>> How to start it properly?
>
>  Type=oneshot  (decribed in man systemd.service).

I tried it
amtu.service - Abstract Machine Tests
	  Loaded: loaded (/lib/systemd/system/amtu.service)
	  Active: failed since Fri, 26 Nov 2010 19:12:48 +0100; 11s ago
	 Process: 2557 (/usr/sbin/amtu $EXTRAOPTIONS, code=exited, status=255)
	  CGroup: name=systemd:/system/amtu.service

> Also, RemainAfterExit=
> property could be useful.

also tried
RemainAfterExit=yes
amtu.service - Abstract Machine Tests
	  Loaded: loaded (/lib/systemd/system/amtu.service)
	  Active: failed since Fri, 26 Nov 2010 19:14:35 +0100; 2s ago
	 Process: 2602 (/usr/sbin/amtu $EXTRAOPTIONS, code=exited, status=255)
	  CGroup: name=systemd:/system/amtu.service


>  But is this really a "service"?

It has init script

>  What's the role of AMTU?

# description:  This service runs the abstract machine tests to check the \
#               underlying security assumptions. It can be configured to
#               halt the machine in the event of failure. The program does
#               not stay resident, but rather runs once.

Frankly, it's this first time I met with this :)

Best regards,
Michal

>
> --
> Tomasz Torcz       ,,(...) today's high-end is tomorrow's embedded processor.''
> xmpp: zdzichubg at chrome.pl                      -- Mitchell Blank on LKML
>
> --
> devel mailing list
> devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel


More information about the devel mailing list