All Questions
290
questions
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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
...
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. ...
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/...
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 ...
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 ...