2010/11/26 Tomasz Torcz <to...@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: zdzich...@chrome.pl                      -- Mitchell Blank on LKML
>
> --
> devel mailing list
> devel@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to