Welcome to the 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?

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

Comments

  • 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.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training