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
0 votes
2 answers
2k views

systemd cannot find PID file after YAJSW wrapper startup

I have a systemd startup script for a forking service (let's call it foo) based on YAJSW (Yet Another Java Service Wrapper). The relevant part of the .service file looks like this: ExecStart=/opt/foo/...
Paweł's user avatar
  • 101
2 votes
1 answer
9k views

How to start 2FA-using OpenVPN with systemd?

I have openvpn config that users 2 factor authentication. If I start it manually, by running: /usr/sbin/openvpn --writepid /run/whatever --cd /etc/openvpn/ --config /etc/openvpn/work.conf it asks ...
user70436's user avatar
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
8 votes
1 answer
7k views

Stop systemd service before suspend, start again after resume

What I want I have a systemd service that I would like to have stopped before suspend/shutdown, and start up again after resume. System details System details below. $ lsb_release -dc Description: ...
CatThatKilledCuriosity's user avatar
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
4 votes
2 answers
3k views

Udev hwdb rule does not work

I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that ...
A. Coder K.'s user avatar
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
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
8 votes
5 answers
16k views

Systemd-networkd: Run script after DHCP client acquires new address

I am on ubuntu 18.04 server. I need to run a script that updates an IP address on CloudFlare (kind of DynDNS script). In previous versions I could do this with a DHCLIENT exit hooks for the interface ...
alexander's user avatar
5 votes
3 answers
5k views

infinite activating state for custom build openssh-hpn-sshd on ubuntu 16

I've compiled hpn version of openssh(OpenSSH_7.2p2-hpn14v11), sshd itself is working just fine. The problem is that every 2-3 minutes systemd restarts sshd as it doesn't get that service started ...
Stranger04's user avatar
2 votes
1 answer
2k views

postinst maintainer script stops systemd unit file from starting automatically on install

I'm creating a small Debian package to install systemd unit files, specifically *.service files. My package looks like: myservice | |--debian |- comapat |- ...
Wimateeka's user avatar
  • 1,015
1 vote
1 answer
2k views

Install srvadmin-hapi package on docker container

I'm attempting to install the Dell openmanage tools on an ubuntu 20.04 docker container and I'm running into some issues. Dell's provided guide: echo 'deb http://linux.dell.com/repo/community/...
jesse_b's user avatar
  • 37.6k
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
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

15 30 50 per page