Skip to main content

New answers tagged

4 votes

How to automatically reload daemons after `/etc/fstab` was changed?

What are the consequences if this is not done? That depends a bit on what's in there. But, for example, if you added (or changed) an entry that would lead to a directory being automatically mounted ...
Marcus Müller's user avatar
6 votes
Accepted

How to automatically reload daemons after `/etc/fstab` was changed?

What are the consequences if this is not done? systemd won’t be aware of the changes; whether that’s important or not depends on the nature of the changes. systemd provides a number of generators ...
Stephen Kitt's user avatar
2 votes
Accepted

How to install systemd-resolved on centos7 and use systemd-resolve

Unfortunately, in CentOS 7, the version of systemd is 219, which does not include a management binary like resolvectl to perform the action you want. From what I can tell, this binary was only ...
anthonysomerset's user avatar
2 votes

Mutual exclusion among a group of services

What about more complex setups? As correctly noted by @larsks (see here) Systemd provides no built-in solution for this. Utilising flock is the correct approach. Wrapping ExecStart commands into /usr/...
PhrozenByte's user avatar
1 vote

Set uid bit not recognised

Several things in Linux can prevent a SUID flag from being applied. Obviously something is different between these boots so my suggestion is to check the situation and compare both cases: mount ...
Hauke Laging's user avatar
  • 94.5k
4 votes

Set uid bit not recognised

Have systemd run the program directly, as the desired user. Replace with the correct full path to the program. Example changed directives: User=root ExecStart=/usr/local/bin/fdil Defining the user in ...
John Mahowald's user avatar
0 votes

how does switch_root command make /sbin/init in the new filesystem pid 1 process?

The execv() function (and every other function in the "exec" family) is defined as replacing the current process with the new one. Roughly what happens when a program calls the function is: ...
Mark's user avatar
  • 4,705

Top 50 recent answers are included