Welcome to the new Linux Foundation Forum!

Lab 39.2: fake2.service: Service has more than one ExecStart= setting, which is only allow

I'm getting the above error doing 39.2.

I don't get it, there is only one ExecStart. Any suggestions?

[Unit]
Description=fake2
After=network.target
[Service]
ExecStart=/bin/sh -c ’/bin/echo I am starting the fake2 service ; /bin/sleep 30’
ExecStop=/bin/echo I am stopping the fake2 service
[Install]
WantedBy=multi-user.target

Comments

  • jengeljengel Posts: 41

    Self resolved:

    ExecStart=/bin/sh -c '/bin/echo I am starting the fake2 service ; /bin/sleep 30'

    those ticks in the pdf. ’ rather than ', so copy&paste didn't work well.

    Common problem actually.

  • Hi jengel,

    Ok, so it's not a problem with the lab itself.
    Keep having fun with the labs :)

    Regards,
    Luis.

Sign In or Register to comment.