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

1
vote
0answers
16 views

Log on standard output

I'm using Debian Jessie and I'm having big init.d script which starts or stops variety of daemons (more than 10), which list is taken from configuration file. Using systemctl restart parstart.service ...
1
vote
1answer
56 views

whats the best way to remove pid files before starting a service

I have a service that does not always remove its pid files when shutting down. So when it goes to start up again it fails. My system is a RHEL 7.2 system and what I want to do is have the system look ...
0
votes
0answers
34 views

wpa_supplicant -u doesn't work, wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf works

Arch linux, up-to-dayte system, Dell Precision M6300 laptop. Short question: Why does wpa_supplicant -u (as run by systemd) not let built-in and USB wireless interfaces work, but wpa_supplicant -c ...
0
votes
1answer
134 views

How to install/enable `syslog.target`?

The output I get when I run systemctl list-units --type=target --all includes the line ● syslog.target not-found inactive dead syslog.target How do I install/enable whatever it is ...
2
votes
1answer
61 views

What is wrong with my systemd unit file?

Here is my unit file: [Unit] Description=Backend Service After=mariadb.service Requires=mariadb.service [Service] Type=simple ExecStart=/var/www/html/pythonscripts/Backend.py [Install] Alias=BEd ...
0
votes
0answers
84 views

Syslog stopped logging after using journalctl

Today I was configuring some things in my VPS running CentOS 7, and checked /var/log/secure several times without noticing any problems.Later I used journalctl to look for some cron logs, and now it ...
0
votes
1answer
26 views

Running a script on power off needing wireless network

I am trying to run a script that rsyncs a directory from one linux box to another on shutdown. I thought I had it working but all my tests were on a box connected via a wired connection. When I tried ...
3
votes
1answer
303 views

Fedora 22 loop on boot

After using F22 for some time (3-4 months) I encountered a problem. THE PROBLEM After choosing Fedora in grub there appears to be a loop (i do not know in what- systemd? gdm?): [ OK ] Created ...
1
vote
1answer
44 views

How to create a .deb that deals with different init systems

I'm learning how to create a .deb file using jdeb in order to deliver a maven based java headless application inside debian based distributions. It needs to be installed in such a way it auto start ...
1
vote
1answer
186 views

One systemd service depend on another

I'm trying to refactor a single systemd service/program into multiple programs and services. My single big service looked like: [Unit] Description=Runs the App loop After=network-online.target ...
1
vote
0answers
55 views

Making systemctl to shutdown process gracefully

I made a small systemctl service to manqge HLTV server (it records demos from a game and stores them on disk): [Unit] Description=HLTV server Requires=cs16.service After=cs16.service [Service] ...
1
vote
0answers
49 views

Trouble setting up systemd service on Centos 7 system

An application from a vendor was installed with a non-root user. This is supported by the vendor and all is good. So the non-root user owns all the installed application executables and files. One of ...
0
votes
0answers
48 views

Linux - Modifying (adding a command execution to) systemd-poweroff.service

I need to execute a command before the poweroff procedure starts. This command is basically a call to i2cset, and nothing more. I modified the file /lib/systemd/system/systemd-poweroff.service ...
3
votes
0answers
183 views

Why does my user's login cause systemd to use up a CPU?

Recently I asked this question and this one about systemd and a few related processes using 100% CPU just 5 minutes after every boot. I have a quadcore Intel processor, each core has two virtual ...
1
vote
0answers
116 views

SystemD uses 100% of CPU 5 minutes after my user's login

Yeah, I already asked this on AskUbuntu but it's got no up/down votes, 20 views and no comments or answers over 16 hours. It's not Ubuntu-specific, because for all intents and purposes, Ubuntu is ...
0
votes
1answer
29 views

Debian systemd boot error with macspoofing: job sockets.target/start deleted to break […]

What I did is adding macspoofing at every boot, following this guide at exactly this section: https://wiki.archlinux.org/index.php/MAC_address_spoofing#macchanger (I'm on Debian Testing) Everything ...
1
vote
1answer
53 views

Unable to re-create /tmp directory

Recently, I have found that my debian 8.2 (jessie) installation is taking forever to boot because systemd will hang for several minutes on a start job is running for create volatile files and ...
1
vote
0answers
23 views

Interaction of initrd commands and systemd services doing same thing

I have a general idea of how the boot process works, but now that I'm customizing the initrd process, I can't wrap my mind around this. If there's a systemd service that can connect to a remote ...
1
vote
0answers
34 views

how does one force the network service to use an updated interface file on system start

I've got an application that we deploy via ovf template. I have it set up so that a customer can enter the network settings into vSphere and they come through via ovfTools. All that works just fine. ...
2
votes
1answer
63 views

How to not mount a partition in fstab file on boot but rather on click on shortcut in nautilus?

I am mounting a samba share using fstab file as: //192.168.2.2/Expansion /samba/raspberry/ cifs ...
1
vote
0answers
216 views

g-io-error-quark 39 error when stopping dbus-service

When I restart a particular computer there is an error message, # init 6 Error getting authority: Error initializing authority: Could not connect: Connection refused (g-io-error-quark, 39) I ...
0
votes
1answer
171 views

Auto-restart apache2 on crash with systemd(Ubuntu 15.10)

There is no apache2.service file on ubuntu 15.10. I want to restart apache2 if the apache2 process gets killed. For most services I can add a ... [Service] Type=simple ExecStart=/path/to/bin ...
3
votes
1answer
154 views

How to run an executable with systemd before NetworkManager shutsdown

I am trying to run an executable, right before shutdown, that needs NetworkManager running. Here is the service file that I currently have (located in /lib/systemd/system), and it works fine if I have ...
1
vote
0answers
27 views

Is there a way to automatically restart docker after updating firewall rules with iptables?

A recent update of iptables and firewall rules caused errors in our app. The culprit was finally found: the docker daemon needed to be restarted. Docker adds own NAT rules to the firewall. A way to ...
1
vote
1answer
99 views

Fedora system doesn't finish booting unless a display was connected - why?

I installed Fedora 23 Workstation on an Intel NUC. When I boot without a display connected and log in over SSH, I see some anomalies. systemd shows the boot process has not finished. The problem seems ...
1
vote
0answers
81 views

Bash script won't run through service

:GOAL: I'm trying to launch a terminal (Gnome terminal) with predefined commands to start a Minecraft Server. To do so, I'm using a bash script which is run by a Minecraft Service I created. ...
3
votes
0answers
81 views

How to disable systemctl unit?

I have a home.mount unit that mounts my home directory to a partition different than what I wish. Things I have tried: Using fstab to override it. However, fstab does not mount /home unless I type ...
0
votes
1answer
126 views

NixOS no login prompt in virtual terminals

I have NixOS built using 15.09 channel, session manager is sddm, display manager is KDE 5. Switching to virtual ttys from 1 to 6 gives me no login prompt, I see same piece of log everywhere: ...
0
votes
1answer
59 views

How to start my own server as a service using systemd

I have written my own server in Qt with QtWebApp Now I want start that server on Ubuntu 15.10 startup using systemd I created this service file [Unit] Description=This service maintains a ...
1
vote
2answers
61 views

How to tell journald to re-read its configuration?

My question is simple: how do I tell journald to re-read its configuration file without rebooting? I've made some changes to /etc/systemd/journald.conf and I'd like to see if they are correct and ...
1
vote
1answer
431 views

Asus UX303UA rebooting instead of resuming from suspend (ubuntu 15.10)

I installed ubuntu 15.10 (kernel 4.2.0-22-generic) on a brand new Asus UX303UA laptop. Almost everything works fine, but I have some trouble with suspending: When the laptop is plugged in (charging), ...
0
votes
0answers
198 views

Universal Media Server not working

I'm trying to get Universal Media Server to work on a headless Debian 8 home server to stream video to my PS4 and other devices. I followed this tutorial ...
1
vote
1answer
62 views

Secure way to back up systemd logs

I have arch linux installed on a raspberry pi and want to start backing up my logs regularly to some external write-once media. It'll probably be a CD, but I'm not sure yet, and it will probably ...
2
votes
1answer
132 views

Why is a reboot necessary for HAVEGED to start?

Today, I installed havaged to my Arch Linux System (rolling release, systemd). # systemctl start haveged is supposed to start the daemon but that just wouldn't work. This is what the log had to ...
1
vote
1answer
45 views

a good way to “backup” systemd settings?

I wonder if there is a recommended way, or any good experience to show my current systemctl status in a complete way so I can back them up periodically. I understand I could simply backup the output ...
0
votes
0answers
23 views

Does the systemd unit bluetooth.service drain battery?

As in the title, I was curious about the following: does the activation of systemd units drains a significant amount of battery power? Take bluetooth.service as an example, is it a bad idea if I ...
5
votes
1answer
674 views

Why doesn't my systemd user unit start at boot?

I'm trying to create a systemd user unit and have it start when the system boots. The service does start manually, however it does not start at boot. From searching the Internet I learned that in ...
0
votes
1answer
70 views

init.d script doesn't give standard output

I'm using Debian Jessie and when I'm trying to use some script from init.d (start, stop, restart). There are functions log_failure_msg log_daemon_msg log_end_msg which should give something on ...
0
votes
0answers
30 views

Use systemd and msmtp to report system change

I would like to use systemd and msmtp to send logs about my system to my email address. I have a bash script that uses msmtp (properly configured) to send the email provided some conditions are met. ...
0
votes
1answer
31 views

systemd not playing a sound

I have a systemd unit which execute a script that is supposed to play a sound in case a certain event happens i.e. it contains a line mplayer /home/myusername/Music/audiofile.WAV This does not ...
1
vote
1answer
179 views

can one use script commands in systemd Environment field?

I've got a docker-compose file that I use to start up several containers for my service. One of these containers requires an environmental variable to be set (the public ip of the server, to be ...
2
votes
1answer
2k views

systemctl keeps timing out on service restart

I'm running CentOS 7.2; see below: # systemctl stop firewalld Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was ...
2
votes
1answer
135 views

Explanation of systemd startup

Raspbian Jessie uses systemd and most system startup processes seem to be run from .service files. There are still a lot of SysV init entries. I gather from reading various articles that Debian 8 has ...
1
vote
0answers
72 views

Unable to emerge SystemD on Hardened/SELinux

I'm on the hardened/linux/amd64/selinux profile on a recent Stage 3 of Gentoo amd64. I'm trying to install SystemD, and I see the following: > emerge -aq sys-apps/ The following mask changes are ...
1
vote
0answers
72 views

How to add a dependency to internet to a service with systemd on arch?

My openVPN connection start perfectly on boot with connman service for Internet and openVPN for my vpn connection. But, If I boot with a connection to Internet at boot and after many time I ...
1
vote
0answers
91 views

Can not suspend when lid switches off if external display is connected

My laptop has Fedora 22 with Gnome 3.16.4. Normally, it will go suspend if the lid is switched off. But with external display connected (via VGA), the gnome desktop is simply transferred to the ...
0
votes
0answers
40 views

Restart service after boot then enable networking ordering

Problem: Server application when first started upon boot has memory leak. When service is restarted, it will then run without issue. Temporary solution is to: AFTER the OS has completed booting, ...
0
votes
1answer
175 views

centos 7.1 - supervisord terminates if run with systemctl

So I have a weird problem and I've been banging my head for the entire day. I have a centos 7.1 with supervisord 3.2.0 installed. If I run the supervisor with systemctl, it runs and then it shuts down ...
0
votes
0answers
115 views

Systemd: service doesn't restart with WatchdogSec option set

I'm trying to manager qemu with systemd. If qemu crashes, it can be restart automatically. I have the following unit file: [Unit] Description=vm manager After=network.target Before=shutdown.target ...
1
vote
1answer
486 views

Can I delay a systemd script from running at boot?

I have two systemd scripts that I want to run on boot up. The first systemd script starts OpenVPN, which then executes a shell script that writes the IP of the connection to the file vpn.env. The ...