How to fix the 'A Stop Job is Running' message during shutdown on Linux.

If youre using a modern Linux distribution, youll almost certainly encounter the message A stop job is running during the shutdown process, and it will pause the shutdown for up to 90 seconds.

If you're using a modern Linux distribution, you'll almost certainly encounter the 'A stop job is running' message during the shutdown process, which will pause the shutdown for up to 90 seconds. Let's explore why this message appears and how you can fix it.

 

This is a safety feature, not a bug!

The first thing you need to know is that the 'A stop job is running' message is a safety feature built into the system, not an error.

Modern Linux distributions like Ubuntu , Fedora, and Arch use Systemd to manage the boot and shutdown process. When you click Shut Down, Systemd doesn't simply unplug the power cord. It sends a polite signal called SIGTERM to every running service and application. Most applications, upon receiving this signal, will save their data, close files, and safely shut down the computer.

 

However, some services take longer to complete their tasks and ignore the signal. That's when you see the warning message. This delay often occurs because certain services, such as network managers, containers, user sessions, or drives mounted on the network, need extra time to close the connection or securely save the data.

Many Linux users look for solutions when they see the message 'A Stop Job is Running', assuming something is wrong. The truth is, Systemd developers intentionally designed this behavior. Essentially, it's a timeout period, typically 90 seconds, that Systemd allocates for services to complete their pending tasks. If a service doesn't complete within the configured timeout, Systemd will force-terminate it using SIGKILL and continue the shutdown process.

Images 1 of How to fix the 'A Stop Job is Running' message during shutdown on Linux.

 

With this gentle shutdown process, many applications complete what they are doing, such as closing files, finalizing database transactions, and cleanly removing the file system. You can still eliminate the waiting time and make the shutdown process faster, but doing so also increases the risk of losing recent logs or transactions, corrupting databases or log files, or leaving mounted drives in an unstable state.

Reduce default waiting time.

The default 90-second timeout strikes a balance for many Linux users, especially those with older hardware, as it's long enough for most services to complete their cleanup processes. However, for users of modern laptops or desktops, 90 seconds might feel too long.

Whatever the reason, you can adjust the system configuration file and reduce wait times by instructing systemd to allow incomplete services a specific number of seconds to complete their tasks.

To begin, open the terminal and use your preferred text editor to edit the system configuration file:

sudo nano /etc/systemd/system.conf

Images 2 of How to fix the 'A Stop Job is Running' message during shutdown on Linux.

 

Next, locate the timeout variable. You'll see a lot of text representing the global settings for your system. Look for a line similar to #DefaultTimeoutStopSec=90s . The hash symbol at the beginning of the line means it's commented out or disabled. The system is currently using the internal default value, which is 90 seconds.

To modify the value, first remove the hash symbol to activate the line, then change 90 seconds to a shorter time according to your preference.

Warning : Do not set this value to 0. Setting it to 0 will create an infinite timeout, meaning the system will wait indefinitely until the process stops. This is the opposite of what we want. An average value (20-30 seconds) is reasonable for many users.

Once finished, save and exit the editor. To apply the changes, you will usually need to restart. Because the issue occurred during the shutdown process, you may see an extended timeout. The new seconds limit will take effect after the next restart.

Note : In some cases, you may also need to enable #DefaultDeviceTimeoutSec=90s for it to work.

When might a long waiting time indicate a problem?

In most cases, task stop timeouts are normal behavior. However, sometimes it can indicate an underlying problem, especially if the same service delays shutdown multiple times. This could mean the network hard drive is inaccessible, a background process is misconfigured, or a service isn't responding correctly to shutdown signals.

 

If you notice the shutdown process taking several minutes instead of seconds, or the same service experiencing a timeout error every time, it's worth investigating. Occasional delays are usually harmless, but persistent delays indicate something needs attention.

To identify the service causing the delay, check the logs after restarting from a slow shutdown process:

journalctl -b -1 -e

Images 3 of How to fix the 'A Stop Job is Running' message during shutdown on Linux.

This command displays logs from the previous startup and jumps to the end. You can scroll up to search for warnings, timeout error messages, or services that the system has forced to stop.

Additionally, you can narrow your search by viewing the alert messages:

journalctl -b -1 -p warning

Images 4 of How to fix the 'A Stop Job is Running' message during shutdown on Linux.

 

Another useful way to check is to run this Systemd analysis command:

systemd-analyze blame

Although this command focuses on startup time, services that start slowly often exhibit similar behavior during shutdown. Some other common services that tend to cause task stop messages include:

  • Network services
  • Remote file systems such as NFS or SMB
  • Database server
  • Container and virtual machine manager
  • External hard drives and devices that automatically mount

Network-based mounts are particularly susceptible to delays if the connection is unstable or unavailable. Additionally, reducing shutdown timeouts might make the shutdown process seem faster, but it doesn't address the root cause. If a service is consistently slowing down the shutdown process, resolving the underlying issue will yield better results in the long run.

Close
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup