Skip to content

Failed to parse service type, ignoring: exec #3672

Closed

Description

@tekumara
$ code-server --version
3.10.2 387b12ef4ca404ffd39d84834e1f0776e9e3c005

$ sudo systemctl status code-server@ubuntu.service | cat
● code-server@ubuntu.service - code-server
   Loaded: loaded (/usr/lib/systemd/system/code-server@.service; indirect; vendor preset: enabled)
   Active: inactive (dead)

Jun 25 06:51:31 ip-10-97-36-177 systemd[1]: /usr/lib/systemd/system/code-server@.service:6: Failed to parse service type, ignoring: exec
Jun 25 06:51:41 ip-10-97-36-177 systemd[1]: /usr/lib/systemd/system/code-server@.service:6: Failed to parse service type, ignoring: exec

$ cat /usr/lib/systemd/system/code-server@.service
[Unit]
Description=code-server
After=network.target

[Service]
Type=exec
ExecStart=/usr/bin/code-server
Restart=always
User=%i

[Install]
WantedBy=default.target

Activity

  1. tekumara commented on Jun 25, 2021

    @tekumara
    Author

    code-server will start regardless, but maybe Type=exec can be removed so this warning message doesn't appear?

  2. locked and limited conversation to collaborators on Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions