Courseiva

LFCS

Full exam simulation

2:00:00
1

Service Configuration

medium

Refer to the exhibit. The service unit file has Restart=on-failure, but systemctl show displays Restart=no. What is the most likely reason?

Exhibit

$ cat /etc/systemd/system/backup.service
[Unit]
Description=Backup Service
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup.sh
User=backup
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target

$ systemctl show backup.service -p Restart
Restart=no
0 of 20 answered