Skip to main content

All Questions

Tagged with
122 votes
3 answers
102k views

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?

Before all the unit files were in /etc/systemd/system/ but now some are showing up in /usr/lib/systemd/system (<- on CentOS, or /lib/systemd/system <- on Debian/Ubuntu), what is the difference ...
therealssj's user avatar
  • 1,351
122 votes
5 answers
136k views

Systemd service - what is `multi-user.target`

I have come across a .service that contains the following: [Install] WantedBy=multi-user.target The original .service file can be found here. What is the the meaning of multi-user.target? I am on ...
eddyP23's user avatar
  • 1,331
91 votes
9 answers
105k views

How to disable `apt-daily.service` on Ubuntu cloud VM image?

The Ubuntu 16.04 server VM image apparently starts the "apt-daily.service" every 12 hours or so; this service performs various APT-related tasks like refreshing the list of available packages, ...
Riccardo Murri's user avatar
21 votes
6 answers
45k views

How to configure systemd-resolved for mdns multicast dns on local network?

Ubuntu 18 I've done a ton of research and am close to pulling this picture together but can't quite understand: How can I configure systemd-resolved for mdns? My goal specifically: to bring up a ...
Duke Dougal's user avatar
  • 1,065
17 votes
2 answers
60k views

How can I make an executable run as a service?

On Ubuntu 18.04, I can start or stop some service by sudo service cron start/stop I can list some services by service --status-all The output matches the files under /etc/init.d/. I heard there ...
Tim's user avatar
  • 103k
17 votes
2 answers
21k views

How to create a virtual systemd service to stop/start several instances together?

I plan to host several instances of the same web app for customers using systemd. I would like to be able to stop and start each customer instance using systemd, as well as treating the whole ...
Mark Stosberg's user avatar
17 votes
2 answers
36k views

How to automatically create a runtime folder with a systemd service or tmpfiles.d?

I'm trying to create a runtime folder at /run/gunicorn for some Gunicorn socket / PID files, which are for a Django application. I can get everything working if I manually create directories. However, ...
geonaut's user avatar
  • 421
14 votes
1 answer
31k views

Common location for systemd unit files on Ubuntu and RHEL

I would like to create a scripted install for a list of Systemd services. This installation should support both Ubuntu (starting with version 16.04) and RHEL/CentOS (starting with version 7.2) I read ...
Marged's user avatar
  • 741
13 votes
1 answer
5k views

unlock login gnome-keyring on i3wm autologin

Problem This question seems to have been asked a billion times, but I'm still completely unable to unlock my login keyring automatically. Background I automatically login, chvt and startx along ...
erp's user avatar
  • 707
12 votes
4 answers
24k views

Automatically enable systemd services installed using deb?

I'm building a bunch of services to install on my own (automatically created) servers. I'm migrating from upstart on Ubuntu 14.04, where services are enabled by default (we have to do extra work if we ...
Guss's user avatar
  • 12.9k
12 votes
1 answer
13k views

Systemd service does not start (WantedBy=multi-user.target)

OS: Ubuntu 20.04.3 $ \cat /home/nikhil/.config/systemd/user/Festival.service [Unit] Description=Festival Service [Service] ExecStart=/usr/bin/festival --server Restart=on-failure RestartSec=10 ...
Porcupine's user avatar
  • 2,056
12 votes
2 answers
64k views

Boot stopped at "Started Update UTMP about System Runlevel Changes" - headless server... no X

It's 8:27am. I haven't slept. I am exhausted. So I'm leaving this here and going to bed. I'll check it after. Pardon me if I'm slightly south of coherent. Ubuntu 16.04.3 LTS server running on a VPS. ...
Cliff Armstrong's user avatar
10 votes
2 answers
5k views

How to disable fingerprint authentication when laptop lid is closed?

I recently managed to make fingerprint authentication work on my laptop, thanks to the Goodix Linux Development discord community and the github users Infinytum and Michael Teuscher on the driver/...
user000001's user avatar
  • 3,665
9 votes
1 answer
5k views

ThinkPad P50 & Ubuntu 22.04: cannot wake up at all, why?

I upgraded to Ubuntu 22.04 on the ThinkPad P50 and cannot wake up the machine after suspend any more. Just after installation there was some offering for the firmware update that I did, but now ...
Michał F's user avatar
  • 291
8 votes
2 answers
4k views

systemd "socket activation" vs xinetd

I use xinetd and it works for my purposes. However I recently discovered that systemd has something built in called "socket activation". These two seem very similar, but systemd is "official" and ...
lonix's user avatar
  • 1,793

15 30 50 per page
1
2 3 4 5
20