Skip to main content

Questions tagged [systemd]

systemd is a collection of daemons, libraries and tools for system management. Ubuntu's Upstart system was replaced with systemd starting with Ubuntu 15.04.

Filter by
Sorted by
Tagged with
605 votes
10 answers
1.3m views

How to list all enabled services from systemctl?

How can I list all enabled services from systemctl? I know running systemctl command by itself lists all services, but I would like to only get the enabled ones.
oceanBT's user avatar
  • 6,277
292 votes
2 answers
208k views

Difference between systemctl and service commands

systemd gives us the systemctl commands suite which is mostly used to enable services to start at boot time. We can also start, stop, reload, restart and check status of services with the help of ...
luv.preet's user avatar
  • 5,847
263 votes
4 answers
312k views

How do I stop Apache2 from automatically starting on boot?

How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
chip's user avatar
  • 2,901
249 votes
2 answers
611k views

How do I make my systemd service run via specific user and start on boot?

I just upgraded from Ubuntu server 14 to version 15. I had trouble getting my upstart script working after the upgrade, and read that systemd is the new default. I'm far from a linux expert, so please ...
void.pointer's user avatar
  • 2,665
209 votes
1 answer
283k views

How do I override or configure systemd services?

Many sysv init scripts used a corresponding file in /etc/default to allow the administrator to configure it. Upstart jobs can be modified using .override files. How do I override or configure systemd ...
muru's user avatar
  • 200k
202 votes
9 answers
469k views

Command to list services that start on startup?

Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.
Eric H's user avatar
  • 2,123
195 votes
3 answers
444k views

How do I run a single command at startup using systemd?

I'd like to startup an Apache Spark cluster after boot using the following command: sudo ./path/to/spark/sbin/start-all.sh Then run this command when the system prepares to reboot/shutdown: sudo ./...
macourtney7's user avatar
  • 2,857
177 votes
3 answers
197k views

What is the difference between "systemctl start" and "systemctl enable"?

I installed MariaDB server to my machine. While setting up, I was met with the problem of whether I should have it enabled all the time, as the documentation I follow suggests with these steps: sudo ...
Chathurika Senani's user avatar
167 votes
5 answers
382k views

How to disable systemd-resolved in Ubuntu?

How can I disable systemd-resolved in Ubuntu 17.04? Disabling it with systemctl disable didn't work, the service seems to be restarted (by Networkmanager?)
Bastian Voigt's user avatar
112 votes
8 answers
316k views

systemctl failed to connect to bus - docker ubuntu:16.04 container

I'm trying to use the systemctl command in a ubuntu:16.04 docker container. I'm running the following command... systemctl status ssh However I'm getting the error... Failed to connect to bus: No ...
Duncan Gravill's user avatar
110 votes
5 answers
292k views

Why are some systemd services in the "masked" state?

When I run the command sudo systemctl list-unit-files (I think the sudo is optional), I get output which shows all services and their state. Here is a snippet from my machine: UNIT FILE ...
knb's user avatar
  • 5,024
104 votes
4 answers
169k views

Where is "journalctl" data stored?

When I issue journalctl I get a massive log of all system services, but where is all this information stored?
php_nub_qq's user avatar
  • 1,529
103 votes
3 answers
134k views

What is the difference between "systemctl mask" and "systemctl disable"?

I want to improve the boot time of my Ubuntu GNOME 16.04 by disabling plymouth services when booting up. I've found two answers on how to do it on various websites namely: # systemctl disable ...
mhm's user avatar
  • 1,342
100 votes
2 answers
95k views

Systemd logs (`journalctl`) are too large and slow

My journalctl is keeping over 300 MB of logs as revealed by journalctl --disk-usage. Everything appears to be in order when I run journalctl --verify: $ journalctl --disk-usage Archived and active ...
WinEunuuchs2Unix's user avatar
88 votes
3 answers
120k views

How can I flush the DNS on Ubuntu 17.04?

How can I flush the DNS on Ubuntu 17.04? I seem to have a few DNS issues at the moment since upgrading to 17.04 from 16.10 and went to flush the DNS but I can't find how to. Can anyone tell me ...
dibs's user avatar
  • 3,509
88 votes
1 answer
76k views

Difference between systemctl init.d and service

I am new to linux and have been testing myself using an Amazon Lightsail instance (Ubuntu 16.04 LTS). Going through the many guides I have came across, I see people using different commands to start/...
Waqas Tariq's user avatar
  • 1,023
86 votes
4 answers
352k views

Where are the systemd units/services located in Ubuntu?

I keep finding, while googling, that they're located at /usr/lib/systemd/system/ and /etc/systemd/system/. However, in my ubuntu, the first doesn't even exist, and the other has only a few services ...
Guerlando OCs's user avatar
68 votes
2 answers
189k views

allowing user to run systemctl/systemd services without password

I want the default user, ubuntu to be able to run a specific service without being prompted for a password. Specifically systemctl restart unicorn_my_app.service. Have followed the instructions here ...
MikeiLL's user avatar
  • 923
61 votes
3 answers
181k views

How can I execute command on startup (rc.local alternative) on Ubuntu 16.10

I am setting up quota on my Linode server running Ubuntu 16.10, and I get the following error Cannot stat() mounted device /dev/root: No such file or directory So to fix this, I reached this ...
Saurabh Sharma's user avatar
59 votes
3 answers
203k views

Systemd service, Working Directory not change the directory

I created this script: [Unit] Description=test [Service] WorkingDirectory=/home/someuser ExecStart=/somescript.sh Restart=always RestartSec=10 StandardOutput=syslog StandardError=syslog ...
Roi Amiel's user avatar
  • 693
59 votes
4 answers
274k views

systemctl, how to unmask

root@gcomputer:~# systemctl status x11-common ● x11-common.service Loaded: masked (/dev/null; bad) Active: inactive (dead) I tried systemctl unmask x11-common and systemctl unmask x11-common....
Albert's user avatar
  • 2,657
55 votes
7 answers
90k views

How do I modify "/sys/kernel/mm/transparent_hugepage/enabled"

I use mongodb 3.0 and I find a warning: MongoDB shell version: 3.0.0 connecting to: test Server has startup warnings: 2015-03-13T16:28:29.405+0800 I CONTROL [initandlisten] 2015-03-13T16:28:29.406+...
Feng Yu's user avatar
  • 867
55 votes
3 answers
104k views

How do I exit the systemctl status command's output? [duplicate]

How does one go about getting the command line prompt back after using the systemctl status command? The command appears to succeed as it displays the status information of the requested service. ...
Brian Ankeny's user avatar
53 votes
1 answer
48k views

How do I properly install a systemd timer and service?

I am attempting to create and install on Bionic a custom pair of systemd timer & service units for running a command periodically. I know that the files should be placed in /etc/systemd/system ...
jwodder's user avatar
  • 797
52 votes
4 answers
153k views

What is a masked service?

I would like to understand what a masked service is and how to unmask it if need be. I have been trying to start PostgreSQL on Ubuntu 16.04-LTS using the command systemctl start postgresql.service. ...
Joseph-L-S's user avatar
  • 1,083
49 votes
2 answers
46k views

How to activate hibernation in 16.04.1 ? (systemd)

I have a fresh install of 16.04.1 on a Lenovo T450s that always worked fine with respect to suspend/hibernate on Ubuntu (previous version I used was 14.04.5). Swap is comfortably bigger than RAM on ...
Marc's user avatar
  • 1,252
48 votes
2 answers
51k views

How can I replace upstart with systemd?

Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
blade19899's user avatar
  • 26.8k
45 votes
5 answers
207k views

How to resolve "service start-limit-hit"

I am trying to run a Node.js API as a service, but am running into problems. When running systemctl status servicename.service I get the following error: servicename.service - [Service description] ...
Matthew's user avatar
  • 583
44 votes
1 answer
32k views

Which to use - systemd OR supervisor?

I have a plugin for alerting on elasticsearch. This is run manually everytime python -m elastalert.elastalert --verbose --rule example_frequency.yaml By this way have to dedicate a screen to ...
luv.preet's user avatar
  • 5,847
43 votes
3 answers
60k views

Is Ubuntu 14.04 using systemd?

There was a lot of discussion about the init system for 14.04 before it was released, but I cannot find any site that explains the outcome finally. So is Ubuntu 14.04 using systemd now?
rubo77's user avatar
  • 32.8k
43 votes
2 answers
56k views

What is the use of systemd-journal-flush.service?

It slows my system boot time. Can i disable it? What will happen if i disable it on boot? I am using Ubuntu version 18.04.
vivek's user avatar
  • 575
42 votes
4 answers
86k views

Slow boot issue due to plymouth-quit-wait.service + ubuntu 18.04

This is freshly installed machine running as dual boot over Win 10. For every reboot machine hangs for 15 secs as the plymouth service unable to start, due to some reasons. ENv:- Manufacturer:...
user183980's user avatar
40 votes
1 answer
140k views

How do I change the runlevel on systemd?

Pretty simple, I am trying to change the runlevel. Everything I find online points me to the file located in: /etc/init/rc-sysinit.conf Here I have tried changing the "DEFAULT_RUNLEVEL" to 3 or ...
gnomed's user avatar
  • 579
40 votes
1 answer
61k views

sudo service status includes bad;

$ sudo service cassandra status ● cassandra.service - LSB: distributed storage system for structured data Loaded: loaded (/etc/init.d/cassandra; bad; vendor preset: enabled) Active: active (...
matanox's user avatar
  • 2,343
40 votes
5 answers
34k views

How do I disable the systemd OOM process killer in Ubuntu 22.04?

Ubuntu 22.04 comes with the systemd-oomd service enabled by default, which has been "helpfully" killing my IDE and / or terminals whenever I try to compile an application using an abundance ...
Kevin Ushey's user avatar
37 votes
1 answer
24k views

How to avoid horizontal scrolling in "systemctl status"?

In a long line in systemctl status it's necessary to scroll horizontally which makes it quite hard to copy the output. Is there a way to get linebreaks at the end of terminal (like nano -$ would do)? ...
Kalle Richter's user avatar
36 votes
4 answers
54k views

16.10 fail to resolve DNS

After upgrading my 16.04-installation to 16.10, I have trouble with DNS. First I got problems a couple of times when connected to WiFi, while it worked on ethernet. Now it seems to work on WiFi also. ...
aweibell's user avatar
  • 542
36 votes
1 answer
63k views

systemd is hanging when I start or restart a service

I'm new to systemd after upgrading to 16.04 and I'm encountering a problem with starting and restarting services. When I run (for example)... systemctl start djalbat.com ...it seems to work, however ...
James Smith's user avatar
35 votes
3 answers
184k views

What is the systemctl equivalent

I am converting a package from .rpm to .deb using this tutorial. However, to test and debug the application I need to run it. The programs readme explains to run it as a service with: systemctl ...
Marnaw's user avatar
  • 351
33 votes
4 answers
59k views

How do I add ~/bin to PATH for a systemd service?

I have a systemd service which calls a PHP script that creates a tmux session on boot. Globally I have the most current tmux for the distro (V>=2.5). The script's USER has a $HOME/bin/tmux of 2.0 ...
Mark's user avatar
  • 1,511
32 votes
3 answers
105k views

16.04 Command to list all services started on boot

I've installed mongodb v3.4. This starts up on boot. So I'm wondering, how to I find out what is starting this up (and how to disable it from starting on boot)? The following did not work: How can ...
Karl Morrison's user avatar
32 votes
3 answers
32k views

Systemd fails to start openvpn in lxd managed 16.04 container

openvpn starts fine from the command line using the exact ExecStart= call from the systemd unit file: /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --...
Christian David's user avatar
32 votes
3 answers
26k views

Why does an Ubuntu Server have graphical.target as the default systemd target?

I've been an Ubuntu user for a while, and at work we have many Ubuntu VM servers, all of which run Ubuntu 14.04 LTS to deploy our web applications, databases, and other tools. I'm currently studying ...
Rémi B.'s user avatar
  • 954
31 votes
8 answers
32k views

Ubuntu 18.04 systemd-udevd uses high CPU, conflict with wifi

I recently switched from Kubuntu 17.10 to Kubuntu 18.04 (fresh installed). The problem is the process systemd-udevd is constantly running and consuming 90-100% CPU load. After tinkering around with ...
Firouziam's user avatar
  • 787
31 votes
7 answers
36k views

Is there a GUI tool for managing systemd on Ubuntu 18.04 (Bionic Beaver)?

Is there a GUI tool for managing systemd on Ubuntu 18.04 (Bionic Beaver)? I want to be able to see the status of services and/or units (and/or whatever else systemd calls them). Ideally, I could also ...
mpb's user avatar
  • 1,375
30 votes
2 answers
4k views

systemd-journald crashed with SIGABRT in pthread_sigmask()

Fresh install of Ubuntu 18.04 on a new Lenovo x1c6, I'm getting this error sometimes after resuming from suspend. I have no idea what it means, and search online leads to a bug report that doesn't ...
goldylucks's user avatar
29 votes
4 answers
13k views

systemd-resolve high cpu usage after update to 17.04

I have recently upgrade my Xubuntu from 16.10 to 17.04. Every things works well except systemd-resolve. some times it makes cpu usage too high and I don't know why this issue has been happend. And ...
Ali Razmdideh's user avatar
28 votes
3 answers
14k views

Rationale for switching from upstart to systemd?

The larger change that comes with Ubuntu 15.04 is the switch from upstart to systemd as the default for managing boot and system service startup. Could anyone adequately explain to a non-technical ...
Nikos Grigoriadis's user avatar
27 votes
4 answers
20k views

After upgrade 14.04 to 16.04.1 Postgresql server does not start

Just upgraded my system from 14.04. LTS to 16.04.1 LTS, postgresql does not start on systemd: /etc/init.d/postgresql start ...
Artur Eshenbrener's user avatar
26 votes
6 answers
23k views

How to run tmux/screen with systemd > 230?

I run 16.04 and systemd now kills tmux when the user disconnects (summary of the change). Is there a way to run tmux or screen (or any similar program) with systemd 230? I read all the heated ...
WoJ's user avatar
  • 1,315

1
2 3 4 5
34