question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing on RPi4 does not create systemctl service

See original GitHub issue
  • Web Browser: Chrome 83.0.4103.116
  • Local OS: Windows 10
  • Remote OS: Raspbian GNU/Linux 10 (buster)
  • Remote Architecture: 75-v7l+ is BCM2711 32-bit
  • code-server --version: 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259

Title says it, trying to run any command with systemctl and code-server gives this: Failed to enable unit: Unit file code-server.service does not exist.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jolestarcommented, Jul 4, 2020

download https://github.com/cdr/code-server/blob/master/ci/build/code-server.service to /lib/systemd/system/code-server.service fix this.

0reactions
olegKusovcommented, Mar 15, 2021

Ubuntu 20.04 LTS. Code server v3.9.1 Trying sudo systemctl enable --now code-server@root and sudo systemctl enable --now code-server@USER Having error Failed to enable unit: Unit file code-server@root.service does not exist.

UPDATE

Please, fix docs. After this command user need to run “curl -fsSL https://code-server.dev/install.sh | sh” but command line instructions says that user need to run sudo systemctl enable --now code-server@USER

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing on RPi4 does not create systemctl service #1845
Title says it, trying to run any command with systemctl and code-server gives this: Failed to enable unit: Unit file code-server.service does ......
Read more >
systemd service not working - Raspberry Pi Forums
Hello ! I am using the latest raspbian (with pixel), and I would like to run a script on startup, but so far...
Read more >
Make a Raspberry Pi 4 program start on boot
How could you make your Raspberry Pi 4 program start on boot? Fortunately, there are some solutions to your problem. The most complete...
Read more >
Creating a Raspberry Pi service with systemd - Domotic Project
Its primary purpose is to initialise, manage and track system services and daemons, both during start-up and while the system is running.
Read more >
The ultimate guide on using systemd to autostart scripts on the ...
There are several ways to autostart Python scripts. My recommendation is to use "systemd" which was introduced in 2018.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found