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
1answer
25 views

Systemd Python service not sending all output to syslog

I have a custom service and have explicitly called for all stdout & stderr to be sent to syslog in the config file, however only some of the output appears in both syslog and the journal (they are ...
0
votes
2answers
26 views

systemctl .service file not working as expected

I am working with the service files in Centos 7 and am creating one for xymon. The issue I am running into is I am trying to configure start, stop, and restart. I went as far as using an existing ...
2
votes
1answer
28 views

if I use multiplicative suffixes in systemd it errors - “failed to parse resource value”

Odd issue, this'n! As per the systemd man.. "The multiplicative suffixes K (=1024), M (=1024*1024) and so on for G, T, P and E may be used for resource limits measured in bytes (e.g. LimitAS=16G)." ...
4
votes
1answer
572 views

How do I connect a 3G dongle using systemd?

At startup, usb-modeswitch automatically switches the dongle to modem mode and the device shows itself as 12d1:1506. After this, a script should run, connecting to the Internet. I am not sure about ...
1
vote
1answer
41 views

Files system become suddently read only; how to debug this?

My ext-4 root and home filesystem became suddently read-only. How can I find out what was the reason for this? The system is ubuntu 16.04 with systemd (installed on an ssd), where root and home ...
12
votes
1answer
2k views

systemd keeps unmounting a removable drive

I have following line in /etc/fstab: UUID=E0FD-F7F5 /mnt/zeno vfat noauto,utf8,user,rw,uid=1000,gid=1000,fmask=0113,dmask=0002 0 0 The partition is freshly created by gnome-disks under the ...
0
votes
0answers
4 views

How to create a systemd Service for Consul in RHEL7 [on hold]

I have setup a consul cluster and I want to make sure that the agent starts by itself whenever the server is restarted. In order to achieve this, I have created an Upstart Service at ...
1
vote
2answers
30 views

How to start x11vnc by socket (ie only when needed)

Actually I start x11vnc in /home/odroid/.config/lxsession/LXDE/autostart with @/bin/x11vnc -bg -forever -shared -rfbauth /home/odroid/.vnc-passwd -noxdamage -norc -noxrecord -capslock -no6 -rfbport ...
0
votes
0answers
19 views

creating pid under /var/run with dnscryypt

I have installed dnscrypt. It works but I had to create the pid with root in /var/run. I tried at first creating the PID dnscrypt as user nobody but got permission denied every time. The code below ...
3
votes
2answers
67 views

Systemd : How to execute script at shutdown only (not at reboot)

There is a lot of solution here to execute a script at shutdown/reboot, but I want my script to only execute at shutdown. I've tried to put my script in /usr/lib/systemd/systemd-shutdown, and check ...
1
vote
0answers
15 views

Systemd and controlling network settings

I'm trying to figure out best way to control network settings in best way possible in real time. My current plan is this: Start ip -s -d -o monitor with systemd and write its output to file ...
3
votes
1answer
3k views

Mounting NFS via systemd in Centos 7

I am trying to mount an NFS share on a CentOS 7 box using systemd. This is my /etc/fstab entry: 10.0.0.104:/export /mnt nfs ...
3
votes
1answer
751 views

How to enable systemd user sessions for remote logins on CentOS 7?

I am trying to enable systemd user sessions on my CentOS 7 server. All the pieces seem to be there, and I have also run loginctl enable-linger <user>, but I don't have a systemd user session (or ...
0
votes
1answer
55 views

I can't exit my local network

I have a Wimax Router for my internet access (192.168.15.1 on local) connected to micro hub. I have a ARM Archlinux odroid machine (192.168.15.2) connected to same Hub. I have Ubuntu PC ...
1
vote
1answer
2k views

Force fsck check after reboot with single command

I'm looking for systemd's equivalent to the shutdown -F command. I know that I can force fsck by adding fsck.mode=force to kernel options or tweak mount count for disks. I have tried touch /forcefsck ...
2
votes
1answer
26 views

Whence does systemd determine the transient hostname?

In RHEL 7.2, systemd starts up and determines the host's hostname. If /etc/hostname is unavailable (ie, removed), and /etc/machine-info is unavilable, and the kernel is not configured with that ...
4
votes
2answers
5k views

“A stop job is running…” on shutdown

Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down: A stop job is running for Session 1 of user xy It waits for ...
1
vote
1answer
43 views

Problems with timesyncd or networkd

I am using Raspbian Jessie and I want to set up time synchronization. What I did is: enabled systemd-timesyncd timedatectl set-ntp true enabled systemd-networkd systemctl enable ...
1
vote
0answers
25 views

How to have systemd-resolved correctly come alive after hot plug?

Setup I am playing with a small embedded board running Debian Jessie. I am using as much systemd stuff as I can, including the networking stuff. I have added the file: ...
4
votes
1answer
1k views

Watchdog daemon doesn't start at boot

I'm using a Raspberry Pi B, with Raspbian. After upgrading to Jessie, watchdog daemon doesn't start at boot anymore. Starting it manually using "sudo service watchdog start" does work. I tried: ...
0
votes
1answer
15 views

cross-reboot monotonic systemd timer

The timer functionality of systemd includes monotonic timers, which measure time in real uptime since some starting point after boot. This means that after a boot, the service triggered by the timer ...
6
votes
1answer
5k views

How do I allow non-root users to control a systemd service with instances?

I need to allow users in the dba group to control the database@ services. The answer to this related question is to just list all systemctl "verbs" that I want to allow in the sudoers file, however, ...
0
votes
2answers
31 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 ...
1
vote
2answers
164 views

What exactly `systemctl --user enable SERVICE` means?

I expected systemctl --user enable SERVICE to start the service on login, which is not happening. Then what is it supposed to mean?
0
votes
1answer
3k views

Debian and Systemd: breaking ordering cycle error

I'm a new embedded developer I'm trying to make systemd 37 work with freescale vybrid board (A5 and M4) running on linux-3.0 After boot with some breaking ordering cycle error, I check with ps ...
0
votes
2answers
12 views

How to get the current _BOOT_ID in journald

How to obtain the current value of _BOOT_ID in systemd-journald? I can do something ugly such like: journalctl -o verbose --since '2016-05-17' | egrep '^[ ]+_BOOT_ID' | tail -n 1| cut -d"=" -f2 ...
0
votes
1answer
22 views

Trailing string in name of temporary directories

I've found that systemd private directory names of ends with a string, for example: systemd-private-3108aa34ce664b6dbb374430ba5f0592-mariadb.service-Q78z1I What does mean such a string?
2
votes
0answers
36 views

Systemd mount fails. Where= setting doesn't match unit name [closed]

If I use this command : mount -t xfs -o noatime,nodiratime,logbufs=8 -L d1 /srv/node/d1 all works correctly. But if I try to mount throug the systemd mount it fails. I've created a file ...
2
votes
1answer
352 views

Systemd fails to start after removal of encrypted swap partition on Fedora 20

In order to resize my boot partition I had to recreate my swap partition. After this systemd does not seem to be able to start. I am new to Fedora/systemd and don't quite understand where I could ...
3
votes
0answers
46 views

How to detect / prevent systemd network startup failures

Using Centos 7 (most recent updates), on a remote firewall machine that is 200 miles away, I have occasional difficulty on reboot with the network stack not properly starting up. The box has 3 ...
0
votes
0answers
14 views

Systemd and Interactive Service

I want to run a server application in background which sometimes requires user input as it has a configuration interface which is only accessible through stdin and stdout. Can I attach to ...
9
votes
2answers
15k views

apache won't restart after adding VirtualHost conf file, why not?

In a CentOS 7 server, I get the following error when I type sudo apachectl restart after I add an include file at the bottom of httpd.conf: Job for httpd.service failed. See 'systemctl status ...
2
votes
1answer
2k views

Writing a systemd service to be executed at resume

my Dell laptop is subject to this bug with kernel 3.14. As a workaround I wrote a simple script /usr/bin/brightness-fix: #!/bin/bash echo 0 > /sys/class/backlight/intel_backlight/brightnes ...
4
votes
1answer
9k views

Why does my systemd unit fail to run on server reboot?

I'm having troubles getting a systemd service unit file to run correctly when the server reboots. This server is a fresh CentOS 7.0.1406 install. I'm trying to set it up with multiple Apache httpd ...
2
votes
0answers
17 views

unicorn + systemd: losing logging after unicorn upgrade

I'm deploying unicorn with systemd for the first time (actually, this is the first time I'm using systemd at all), and I'm using unicorn's "zero-downtime upgrade" trick, or basically: Send USR2 to ...
5
votes
2answers
6k views

How can I start Apache on Arch Linux w/systemd using passphrase protected SSL keys?

I'm relatively new to using Arch Linux and think I must be missing the obvious way to do this correctly, but –short of starting the daemon on my own– I can't figure out how to get passphrase protected ...
2
votes
1answer
45 views

How to encrypt a live root fs remotely and unlock it via ssh

I have a Linux Arch system running on a VPS. The rootfs is installed on a LVM partition. I would like to overlay an encrypted container on this partition, then reinstall the rootfs on it and enable ...
1
vote
1answer
5k views

httpd start fails and shows up error

I installed Apache through yum install httpd in Fedora. When I try to start the service it shows the following error: [root@localhost ~]# systemctl enable httpd.service ln -s ...
1
vote
1answer
66 views

Difference between ps process httpd and deamon process httpd

When I'm running command ps aux | grep httpd , it shows that httpd is in running state, but on running systemctl status httpd - its inactive and disabled. Why is it so?
0
votes
1answer
33 views

Configuring Systemd to execute extra script after httpd start/restart using ExecStartPost setting not working

I need to have a PHP file execute whenever the httpd service starts or restarts. I found that Systemd has a configuration setting called **ExecStartPost, which looks perfect for what I need to do. I ...
1
vote
0answers
46 views

Galera + systemd: wsrep_notify_cmd fails with sudo (unable to change to sudoers gid: Operation not permitted)

We have a Galera cluster operational on CentOS 7 with sysv, and are looking into migrating to systemd. We are invoking a wsrep_notify_cmd to notify our application of changes in the node states, and ...
1
vote
0answers
13 views

systemd: gracefully fail backup when external disk not plugged in

I have a backup setup where I use systemd timers to do hourly, daily, weekly, and monthly backups. Each timer unit triggers a service that runs the backup script. The backup service units are of the ...
1
vote
0answers
48 views

How can I prevent systemctl reboot or systemctl poweroff from executing?

I work a lot SSHed into little SBCs and very often run sudo systemctl reboot or sudo systemctl poweroff Every so often my SSH session had disconnected without me noticing, and I accidentally reboot ...
1
vote
1answer
62 views

Squid systemd service not run at boot

I compiled squid 3 from source and installed in /usr/local/squid/ on my debian jessie computer. I want to start squid at boot. The following code is my squid.service which located in ...
1
vote
0answers
30 views

Getting verbose feedback for systemctl commands [duplicate]

One of my biggest issues with systemd is the lack of any feedback when starting/stopping/restarting a service. With sysvinit, I'd get the following after issuing service openvpn restart: [ ok ] ...
2
votes
1answer
42 views

boot of nfs mounting drive taking very long

When I upgraded to ubuntu 16.04 my boot time increased dramatically I did a systemd-analyze blame and as you can see the first two items take a very long time to load and this is on a SSD. 1min ...
3
votes
0answers
24 views

systemd.unit `RequiresMountsFor=` vs `ConditionPathIsDirectory=`

I am about to write service that rsync --delete directory /mnt/foo to remote server. However because of --delete option, I'd like to not run it unless /mnt/foo is mounted, as this might result in ...
2
votes
1answer
990 views

Umount network drives with systemd before shutdown

My shutdown takes quite a long time (I'm on Debian 8.1) and I found out that it can be fixed by unmounting the network drive before shutting down the system. Apparently the network gets disconnected ...
1
vote
1answer
35 views

systemd // failed with result 'dependency'

I'm quite new to this systemd topic. I have some Units with varios Requires, After and Before. On some Units i got messages like: tinc.service: Job tinc.service/start failed with result ...
117
votes
5answers
52k views

What are the pros/cons of Upstart and systemd?

It appears systemd is the hot new init system on the block, same as Upstart was a few years ago. What are the pros/cons for each? Also, how does each compare to other init systems?