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
sudo systemctl start amtu.service
sudo systemctl status amtu.service
amtu.service - Abstract Machine Tests
Loaded: loaded (/lib/systemd/system/amtu.service)
Active: active (running) since Fri, 26 Nov 2010 18:13:47 +0100; 1s ago
Main PID: 2092 (amtu)
CGroup: name=systemd:/system/amtu.service
└ 2092 /usr/sbin/amtu
sudo systemctl status amtu.service
amtu.service - Abstract Machine Tests
Loaded: loaded (/lib/systemd/system/amtu.service)
Active: failed since Fri, 26 Nov 2010 18:13:50 +0100; 632ms ago
Main PID: 2092 (code=exited, status=255)
CGroup: name=systemd:/system/amtu.service
It's because it's not really a daemon.
sudo /usr/sbin/amtu
Executing Memory Test...
Memory Test SUCCESS!
Executing Memory Separation Test...
Memory Separation Test SUCCESS!
Executing Network I/O Tests...
Failed to get list of network interfaces to test.
Executing I/O Controller - Disk Test...
I/O Controller - Disk Test SUCCESS!
Executing Supervisor Mode Instructions Test...
Privileged Instruction Test SUCCESS!
This service runs for a few seconds and exit.
How to start it properly?
Best regards,
Michal