Tag Info

Hot answers tagged

4

They are completely different things. systemd is an init system (replaces the old systemV init). It extends it in the following ways: It unifies the init, login and initscripts, so that different distributions no longer have each its own custom set of scripts to load daemons It tracks the services (daemons) so that it has control over them after they ...


4

You should change auto eth0 to allow-hotplug eth0 in your /etc/network/interfaces. This would keep your system away from trying to get address by DHCP when interface isn't connected. This should fix the problem. Also, you can set lower timeout to DHCP client. You may set timeout 3; in /etc/dhcp/dhclient.conf. It will set 3 seconds timeout for getting IP ...


3

You need to add PermissionsStartOnly=true to [Service]. Your user FOOd is of course not authorized to create a directory in /var/run. To cite the man page: Takes a boolean argument. If true, the permission-related execution options, as configured with User= and similar options (see systemd.exec(5) for more information), are ...


3

Two things you need to know: 1) Systemd boots towards the target given by "default.target". This is typically a symbolic link to the actual target file. 2) Systemd keeps it's targets in /lib/systemd/system and /etc/systemd/system. A file in /etc/systemd/system takes precedence over those shipped with the OS in /lib/systemd/system -- the intent is that ...


2

I don't think you can do it on tty6 because: tty6 is especially reserved for auto-spawned gettys and unavailable to other subsystems such as X[3]. This is done in order to ensure that there's always a way to get a text login, even if due to fast user switching X took possession of more than 5 VTs. For more info you can check here. But you can try ...


2

There are two ways: an implicit and an explicit. First way — StopWhenUnneeded= The first way is to use the StopWhenUnneeded= directive. If a unit has StopWhenUnneeded=yes, it will be automatically stopped when there becomes no active unit which Wants=/Requires= the unit in question. Hence: this will only work if these units are WantedBy= only by ...


2

Wikipedia has a very detailed entry about systemd, including a list of components. Unfortunately it does not list what was replaced before.


1

What does it mean look pretty in /bin/ps and why to choose (sd-pam) and not just sd-pam as a name? Putting parenthesis around the name seems indicate that this process has something special Yes, it has something special. This is a made-up name and not a name of any existing binary. In other words, there is no "sd-pam" file anywhere; this process is a ...


1

I'm trying to write a systemd service which should expose the options start|stop|status|restart. Your first mistake. Service units are not scripts. They don't have options. The options are to the systemctl command, and they are uniform across all units. I realize using centos seems to be non-standard, Your second mistake, related to your third ...


1

In systemd setups, reboot, poweroff, halt and init N all translate to various subcommands of systemctl. I'll be talking in terms of systemctl from now on. So, what happens when you issue (for example) a systemctl reboot command? Barring the polkit/logind abstraction layer (which is anyway not used when root privileges are available), this command translates ...


1

What he is trying to do is: have a "top" always available on vt6. Seems like a reasonable goal to me. The configuration vor the login gettys on the vt's are in /etc/systemd/logind.conf Here you can restrict systemd on the usage of login-vt's. What i don't know at the moment is, how the "inittab" functionallity is handled by current distros. "inittab" is ...


1

systemd grabs the serial console and squelches the kernel, so I only get the bootloader messages Does it? It doesn't. The loglevel=1 in your kernel command line is responsible for telling kernel to stop logging. Try removing that statement (or explicitly setting it to loglevel=7). To stop systemd from logging its own status messages, use ...


1

It looks to me that your systems clock is not functioning, probably because of the battery not, or no longer providing enough current to keep the clock going during restart. (If the clock chip where bad, you should get a different error, ntpd should notice). That is why you reboot in 1970 when the "Unix era" starts. When ntpd starts it hears from the rest ...


1

This is not an answer that explains or fixes the permission problem, but I think you should just use systemds RuntimeDirectory option. Quoting the man page: RuntimeDirectory=, RuntimeDirectoryMode= Takes a list of directory names. If set, one or more directories by the specified names will be created below /run (for system services) or ...


1

Solution: auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "myssid" wpa-psk "mypasswd" The differences between auto and allow-hotplug are explained well in Good detailed explanation of /etc/network/interfaces syntax: auto interface – Start the interface(s) at boot. That’s ...


1

This is pretty complicated. Let's explain the commands in order you've enumerated them. telinit Various arguments to telinit directly translate to various (different) subcommands of systemctl. As per telinit(8) (documentation from systemd package): 2, 3, 4, 5 Change the SysV runlevel. This is translated into an activation request for ...


1

If you are using syslog-ng you can use the filter directive: filter demo_filter { not match ("atmel_mxt_ts i2c-ATML0000:01: Status: 08"); }; For more details about filtering with syslog-ng see https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#filters If you are using ...


1

Your question contains of two separate issues: (a) how to translate services dependency to systemd unit files syntax and (b) how to change unit definitions without changing unit files provided by software vendor. As for (a), you correctly note that you want After= keyword. JBoss unit file should contain both After=<WebSphereMQ unit name> and ...


1

We had the same problem on Debian 8.1, but fixed it by changing our syslog-ng local configuration to use unix-dgram instead of unix-socket. I was clued in by this comment at RedHat Bugzilla: Note about custom syslog-ng configurations files People with custom syslog-ng configurations will most likely face upgrade problems due to the unix socket ...


1

From tmpfiles.d(5): System daemons frequently require private runtime directories below /run to place communication sockets and similar in. For these, consider declaring them in their unit files using RuntimeDirectory= (see systemd.exec(5) for details), if this is feasible. And from systemd.exec(5): RuntimeDirectory=, RuntimeDirectoryMode= ...


1

You can run your command(s) via systemd-run --scope. This creates a transient (ie temporary) cgroup for your command. You can then modify the cgroup to your needs. Use systemd-cgls to find your process in the cgroup hierarchy under /sys/fs/cgroup. According to the systemd-run manpage systemd-run may be used to create and start a transient .service or a ...



Only top voted, non community-wiki answers of a minimum length are eligible