systemd is an alternative approach to SystemV init daemon for Linux. It is intended to provide a better framework for expressing services' dependencies, allow more work to be done in parallel at system startup, and to reduce shell overhead.

learn more… | top users | synonyms

2
votes
0answers
10 views

Restart systemd service when output is no longer generated

Is it possible to restart a systemd service when there is no output generated for a predefined amount of time? I have a script which apparently can hang, but that is not detected by systemd (or ...
0
votes
0answers
21 views

Network mount /var with systemd

I'm trying to get my system to mount /var with a custom script that downloads the decryption key from a network server. I had a solution that worked in RHEL 6 with SysVinit. I'm trying to port that to ...
0
votes
1answer
17 views

systemd: user service starts at boot with target default/graphical but not multi-user

I tried to start at boot a service running in my user's context, which did not work with multi-user as target but only with default, i.e., graphical. I enabled lingering for my user and the service ...
0
votes
1answer
17 views

How does BeagleBone Black Linux bootstrap change when System 5 init is replaced by systemd? [on hold]

We have BBB based custom Linux board running Linux 3.12. We are current using SysV init for boot. I understand that boot happens in following sequence: ROM code looks for boot device based on boot ...
0
votes
1answer
20 views

How do I to set multiple IP addresses on an interface in systemd?

So in /etc/systemd/network I have a file lan.network: [Match] Name=eth0 [Network] DHCP=no [Address] Address=192.168.59.1/24 Sometimes I bring additional equipment onto that same interface but it'...
5
votes
0answers
32 views

systemd user cannot get user group's ability

I added a non-root user in docker group, and an other service run as this non-root user connect to docker daemon. but the service can not work. I do a test example for this : root@# systemctl start ...
1
vote
1answer
116 views

Unable to boot after installing after systemd update

First it repeats this error many times: Lvmetad is not active yet, using direct activation during sysinit Volume group "mint-vg"not found Cannot process volume group mint-vg Than it shows: Gave up ...
0
votes
1answer
22 views

How to expose a directory to a container?

I would like to expose to a container (Ubuntu 16.04 created with debootstrap) started with systemd-nspawn a directory of the host system (also an Ubuntu 16.04). Is this possible with systemd-nspawn? ...
0
votes
1answer
12 views

mysql service restarted during user being connected lead to failing service

I have performed a charset change via my.ini into utf8 and forgot a user loggen in in another terminal session, when I performed a service restart. Initially systemd reported a problem stopping the ...
0
votes
1answer
18 views

Why is it taking so long to establish a LAN connection on boot?

I have an issue with a virtual machine taking time to connect to the local network on boot. I create a virtual machine using the following command: virt-install \ --connect qemu:///system \ -...
2
votes
1answer
9 views

How to configure per-unit log storage policy with journald?

I have one particular service, that logs rare, but important information. I've set it up few months ago, and today I've ran journalctl -n 50 --unit=my-service only to find there are no entries. I'm ...
0
votes
0answers
17 views

LMDE 2 boots to black screen but if I choose 'systemd' it loads normal

I made the unfortunate mistake of copying and pasting some stuff and now LMDE boots to a black screen. However, if I interrupt the boot process and choose the option with (systemd) at the end, it ...
3
votes
1answer
29 views

cgroups/systemd: How to create a cgroup for a process tree [non-root]

As a non-root user, I'd like to be able to start a process that will start a bunch of other processes (think of a 'make' session, or the way Google Chrome starts a process for each tab) and have the ...
0
votes
0answers
31 views

systemd underestimates boot time. How can I try upstart?

Sorry in advance if this is a stupid question, but I'm new to this issue and every time I google it, I just get comparisons of upstart versus systemd. Anyway, my Samsung laptop with Mint 18 is taking ...
3
votes
0answers
30 views

How to remount a Systemd mount unit with different options?

I wish to express the following sequence of commands in terms of Systemd mount units and systemctl invocations: # mount /some/path /some/mountpoint -o ro # mount /some/mountpoint -o remount,rw # ...
1
vote
1answer
17 views

Starting additional OpenVPN connection under systemd

I have a couple of OpenVPN connections to various servers that are autostarted when I log into my laptop. Other connections, to production servers, have to be set up manually. Until recently I ran ...
1
vote
1answer
21 views

Not getting ip when running dhcpcd wlan0 inside startup script

Rasbian on a Rasberry PI zero. I have disabled the networking and dhcpcd services from startup and want to start networking and get an IP from within my own script, which is initiated from a custom ...
0
votes
1answer
26 views

What is VC keymap?

Here is what I get when executing localectl status: $ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: us-acentos X11 Layout: us X11 Model: pc104 X11 Variant: ...
1
vote
0answers
19 views

Can we specify percentage value for RuntimeMaxUse attribute in journald.conf

From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files. I have configured below values in journald.conf. RuntimeMaxUse=10 #...
0
votes
0answers
19 views

udev rule not executing the script specified in RUN

I have the following in /etc/udev/rules.d/40-swallowpv.rules: ACTION=="add", KERNEL=="sd[a-z]+", RUN="/var/tmp/swallowpv sdc" (I've also tried with RUN+= to the same effect). The first thing the ...
1
vote
1answer
21 views

Systemd: pipe input to daemonized server?

So I have a server that I can run from a bash terminal using e.g. java -jar spigot.jar which will send output to stdout (I believe), and thus be printed to the terminal screen. To stop the server ...
0
votes
0answers
9 views

What am doing wrong with this systemd/Timers setup?

I want "bot.sh" to be executed every 15 minutes. What am I doing wrong? /etc/systemd/system/redditbot.service [Unit] Description=reddit bot anti_anti_adblock [Service] Type=simple ExecStart=/home/...
1
vote
1answer
28 views

What does systemctl with status command? [closed]

When I run eg: systemctl status nut-monitor.service what does systemd do? If I take a look to unit file I don't find any clue: cat /usr/lib/systemd/system/nut-monitor.service [Unit] Description=...
0
votes
0answers
28 views

Boot Linux with sysVinit and systemd hybrid

I have a firmware loading tool that uses a two-step boot process modeled after a live disk, running on an embedded device. First, Linux boots using SysVinit and inittab runs the tool. Next, the ...
1
vote
0answers
10 views

Setting locale in a systemd-nspawn container (debian jessie)

Trying to get powerline/airline symbols to show in vim running in a Debian container created with sudo systemd-nspawn -D ~/debian-tree/ on a Fedora host. Right now it just shows question marks in ...
1
vote
0answers
19 views

restart a service after device has been mounted

Is it possible to restart a systemd-service A from another unit B? the service A (to be restarted) is supposed to run, regardless of the status of B, but once B becomes active (or inactive) it needs ...
3
votes
1answer
38 views

Warning because addgroup tries to create an already existing user group

I am trying to run the command dpkg --configure -a in order to fix dpkg so I can apt-get programs. I get the error addgroup: The group 'systemd-journal' already exists as a system group. Exiting. ...
1
vote
0answers
32 views

Integration of `afuse` with `sshfs` as a (systemd?) user-daemon spawned from login or first shell

To facilitate working with remote files, I setup afuse with sshfs to run from my .bashrc. It works, after bash init all my remote trees from ~/.ssh/config/ are mounted on-demand under ~/scp/, but ...
0
votes
1answer
29 views

Unable to start posgtresql, the reason isn't clear

I've installed postgresql by pacman. Now I'm trying to run it: $ sudo systemctl start postgresql Job for postgresql.service failed because the control process exited with error code. See "...
0
votes
1answer
52 views

NetworkManager wireless connection fails to connect

I am trying to get wireless networking to work on my laptop under Arch Linux. While I am able to scan for and see wireless signals, I can't seem to connect. nmtui produces: The network I am trying ...
1
vote
0answers
36 views

Systemd networking service fails because of unknown interface

My problem is related to USB tethering and network interfaces. When I run ifconfig -a, normally I see 3 interfaces - loopback, WiFi and Ethernet. I have defined gateway, netmask and broadcast for ...
0
votes
0answers
20 views

Log notifications sent by process and its descendant

I have a process which creates a lot of processes, I know that processes can send notifications using /run/systemd/notify (systemd-notify). Is there any way that I can launch processes and log all the ...
2
votes
0answers
28 views

Enable tty console login while “A stop job is running” (stop running forever, preventing shutdown)

A message like this one is often shown on shutdown: "A stop job is running ..." (nfs mount) This apparently even happens when the NFS server did not go away. But even if the connection to the NFS ...
1
vote
2answers
36 views

systemd: stop boot process on failure (actually make a shutdown)

How is possible to immediately stop the bootup process, show some message (quit splash screen) and shutdown machine if a oneshot service fails? My service starts just one script. If something went ...
0
votes
0answers
27 views

IP NAT Routing with systemd-networkd and KVM

my setup looks like: KVM Hypervisor Ubuntu 15.10 with libvirt systemd-networkd configuration ==> 10-static.network <== [Match] Name=eth0 [Network] Bridge=br0 ==> 20-bridge.network <==...
2
votes
1answer
29 views

How to write a Systemd unit that will fire before networking goes down

I want to run a script when a user shuts their computer down, but it needs networking. So I'd like it to run when the system is heading for shutdown (or restart), but it needs to run before anything ...
2
votes
0answers
36 views

VPN server into systemd-nspawn machine

I am trying to deploy a VPN server (I choose Openswan flavor) into a systemd-nspawn container on a raspberry pi running Arch Linux. For now I can login into the container, ping, goes outside from ...
0
votes
1answer
67 views

failed to start service

I have created a systemd service: [Unit] Description=My service [Service] Type=forking ExecStart=/bin/sh $HOME/theFolder/run.sh Restart=on-failure [Install] WantedBy=multi-user.target Alias=mine....
4
votes
1answer
37 views

Replacing the SSH agent in GNOME Shell, Wayland, and SystemD

I'm using Fedora 24 (amd64), which is running GNOME 3/GNOME Shell as a desktop environment, using Wayland as the display server, and SystemD as the init. Pretty standard, out of the box, this is the ...
0
votes
0answers
17 views

Is it safe to delete '.journal~' files?

Our Apache installation is in /var/www on a CentOS 7.2 virtual machine. On occassion I run the following to ensure there are no unintended backups which could leak information to an attacker: $ sudo ...
1
vote
2answers
33 views

Debconf error in system with systemd

I've encountered the following problem when using debconf to configure a package in Ubuntu 16.04 during installation. More precisely, the package uses debconf to save configurations files, and right ...
1
vote
1answer
49 views

Why does systemctl isolate multi-user.target succeed only once?

I was just taught here that systemctl isolate multi-user.target is the modern way to unload the graphic shell, which was done by init 3 previously. I see that init 3 still works in my system but it ...
0
votes
0answers
26 views

Exit from Gnome using systemd [duplicate]

I was told today that traditional way to exit from GUI, using init 3 is obsolete in Fedora and I better use systemd instead. How do I?
3
votes
2answers
53 views

All services of a user are killed when running multiple services under this user with systemd

We're using Ubuntu 16.04 LTS and want to use multiple Tomcat installations which should start at boot time. One of these Tomcats would host a Jenkins which will deploy a webapp onto the other tomcat ...
1
vote
0answers
50 views

Systemd: stop the main process (or the service) when a subprocess crash

I have two programs that I called program1 and program2 which perform a main task of two operations. When program1 start running it pipe its results to program2 which performs the final result. ...
1
vote
1answer
14 views

Run user's systemd timer while they don't have any open session

Are systemd per user systemd-timer running for offline users ? If not, is it possible to allow them to be running for users within a specific group ? Will the target service of the timer be launched ...
0
votes
1answer
30 views

Running an X application from a shell script via systemd timer

I'm trying to create a systemd (user) timer that opens certain tabs every day at 9PM with xdg-open. Here are the files: /home/me/.config/systemd/user/test.service [Unit] Description=Test [Service] ...
0
votes
0answers
29 views

mount samba shares at boot with systemd

I have some Samba shares that I want to mount at boot time. They're not needed for anything immediately, but I'd like them to be available when I first access them. I've tried using a .mount file ...
2
votes
2answers
85 views

using systemd timers instead of cron

I am on Arch Linux where I am trying to create a systemd timer as a cron alternative for hibernating my laptop on low battery. So I wrote these three files: /etc/systemd/system/battery.service [...
0
votes
1answer
31 views

Limit the number of mod_mono_server4 process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot timee?

How do I limit the number of mod_mono_service process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot time? The way to specify the number of Apache server ...