Systemd service won't start? Read the logs and fix it (complete guide)
Shell Stack
0:00 / 0:00
Systemd service won't start? Read the logs and fix it (complete guide)
13 просмотров · 5 дн. назад
Shell Stack
64 подписчика
13 просмотров · 5 дн. назад
Your systemd service won't start, or starts and dies a second later? Learn to read the status and the logs the right way, and fix the three most common causes: a wrong path in the unit file, an app that crashes on start, and a port that is already taken. Then make it start at every boot and restart itself after a crash.
Chapters:
0:00 The problem
0:20 See the problem
0:50 Read the status
1:22 Read the logs
1:47 Check the unit file
2:17 Fix it and reload
3:05 The app crashed
4:05 Port already in use
4:59 Start at boot
5:22 Restart after a crash
6:10 Check every service
6:27 Recap
Every command is shown step by step in the video.
Safety: practise on a test machine or a folder you can afford to lose, read every step before you run it, and double check anything that deletes files or stops a program.
More from Shell Stack:
APT broken on Ubuntu? Fix 'Could not get lock' and held packages — • APT broken on Ubuntu? Fix 'Could not get l...
"Port already in use" on Linux? Find and stop any process — • "Port already in use" on Linux? Find and s...
SSH connection refused? Fix it step by step — • SSH connection refused? Fix it step by ste...
Subscribe for a new Linux fix every day: / @shellstacklinux
Music:
Dosi & Aisake - Cruising [NCS Release]
Music provided by NoCopyrightSounds
Free Download/Stream: http://ncs.io/Cruising
Watch: http://ncs.lnk.to/CruisingAT/youtube
#linux #ubuntu #linuxtutorial #terminal #linuxforbeginners