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
2answers
85 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 ...
1
vote
1answer
51 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 ...
1
vote
0answers
21 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 ...
0
votes
0answers
29 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 ...
1
vote
2answers
56 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 ...
3
votes
2answers
159 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 ...
2
votes
1answer
54 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 ...
1
vote
1answer
115 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 systemd-networkd....
1
vote
0answers
42 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: /etc/systemd/network/eth0-dhcp....
0
votes
0answers
82 views

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

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 '/etc/systemd/...
1
vote
2answers
88 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 ...
0
votes
1answer
23 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?
0
votes
2answers
16 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 ...
2
votes
0answers
126 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 /etc/systemd/...
3
votes
2answers
95 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
27 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 Systemd-...
2
votes
0answers
27 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 ...
1
vote
0answers
19 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
96 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
141 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 /etc/systemd/...
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
81 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 30....
3
votes
0answers
97 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
63 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)." ...
2
votes
1answer
58 views

Why does using the service command work on a systemd distro?

I'm trying to understand the Linux init system. I don't understand how there are three competing systems, yet the service command seems to work on all of them. From the service commands man page: ...
1
vote
1answer
99 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 '...
0
votes
0answers
66 views

mbsync: retrieve password from a keyring and use a systemd service

I'm on Fedora23 and I've set up a systemd service, as explained in the isync page of Arch wiki, to schedule the run of mbsync every x minutes. I need it for Mutt. The service works fine when the ...
2
votes
1answer
75 views

Unable to reach network from chroot

I have a complicated scenario, with most of the complicated parts working: SD card contains a Fedora 23 Raspberry Pi install on a LUKS/BTRFS filesystem. Fedora 23 x86-64 VM being used to manage the ...
0
votes
1answer
38 views

Systemd: Whats wrong with this unit? [duplicate]

I wrote this unit (/etc/systemd/system/test@.service): [Unit] Description=TEST (%I) [Service] ExecStart=/bin/echo "%i %I" >> /home/vagrant/test.txt [Install] WantedBy=multi-user.target ...
3
votes
1answer
74 views

systemd service failing

For no reason I can think of Nzbget has stopped running. I have changed nothing and the service just stopped and refused to restart. sudo systemctl status nzbget -l * nzbget.service - NZBGet ...
3
votes
1answer
64 views

Is there any systemd equivalent to “initctl emit”?

In upstart, it was possible to send custom events with initctl emit custom-event. It was also possible to use these custom events on the start on and stop on stanzas. Does systemd provides something ...
1
vote
1answer
66 views

Confusion about systemd, environment files and command-line arguments to the service executable

I'm trying to convert an upstart script to systemd, but I can't figure out how to pass command line arguments to the executable. Here is the original upstart script: # job description description "...
3
votes
1answer
47 views

how to adjust the boot sequence using systemd

I need to send email using postfix as server once wifi has received IP address (based on dhcpcd). It seems that systemd by default boot postfix before wifi (wlan0) is ready. The consequence associated ...
2
votes
0answers
73 views

Can not start wifi with systemd

With command netctl start wlp3s0-tian got error. Apr 29 18:28:57 ArchPad systemd[1]: Starting Networking for netctl profile wlp3s0-tian... Apr 29 18:28:57 ArchPad network[1019]: Starting network ...
1
vote
0answers
15 views

Store messages from previous boots while keeping immediate log output

As this answer suggests, the way to enable storing logs across boots is: # mkdir /var/log/journal # systemd-tmpfiles --create --prefix /var/log/journal # systemctl restart systemd-journald But when ...
1
vote
0answers
61 views

how do I start user interactive systemd unit

I have a customized Linux image. When it first boots, it checks for some flags, then should ask if the user on console wants to kick off the setup script. If yes, then run setup, display important ...
2
votes
1answer
100 views

Using mate desktop without systemd

I am using Debian Jessie with the Mate desktop and I would like to remove systemd from my system. I am following these instructions but as soon as I enter apt-get remove --purge --auto-remove systemd ...
1
vote
1answer
64 views

Arch bootup: network.target takes a long time to start [closed]

As it was discussed at another post here a process is blocking the boot sequence, so it takes really long to start up. Login via mosh (ssh replacement) is possible after 1:30 min. Here is my output ...
3
votes
0answers
40 views

systemd: how to require and effect mounting a specific file system?

I would like to create a service file that, when started, causes a specified filesystem to be mounted before the action of the service file is performed (as it needs that file system to be available). ...
0
votes
2answers
135 views

Not Able to run telnet service on CentOS machine

When I try to run the telnet service on CentOS Linux release 7.2.1511 it throws the following error: service telnet restart Redirecting to /bin/systemctl restart telnet.service Failed to restart ...
1
vote
0answers
85 views

Unable to get login prompt on /dev/ttyUSB0

I am attempting to connect a TI-89 graphing calculator as a serial terminal to a Raspberry Pi running the latest version of Raspbian. The calculator is emulating a PL2303 serial adapter at /dev/...
0
votes
1answer
59 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 (192.168.15.10)...
0
votes
1answer
20 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 ...
2
votes
1answer
385 views

Systemd: How to start/stop Python script that should run in background, inside Virtualenv

On my Raspbian machine, I want a successful OpenVPN connection to my VPN provider to initiate a Python script, that persistently should run in the background as long as the VPN connection is active. ...
0
votes
0answers
15 views

can systemctl check dependencies across servers

I have recently started to convert init scripts to systemd style. I see that there is a "depends" and "require" attributes in systemctl service files that checks for dependent processes to be running. ...
1
vote
0answers
33 views

When creating an init.d demon, what is the .service file?

I am trying to create a service that will eventually run at start, however I am getting stuck just trying to get the service to run using: sudo service fortech_bluetooth_server start Whenever I run ...
1
vote
0answers
71 views

how does systemd activate encrypted swap file on alternate partition?

I have 2 partitions: / and /data. My swap file is encrypted at /data/swap. So /etc/crypttab looks like: root_crypt UUID=6666 none luks swap /data/swap /dev/urandom swap And /etc/fstab looks like (...
0
votes
1answer
71 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 ...
0
votes
1answer
79 views

Problem running systemctl in centos7 based container

Error message from docker log command : Failed to get D-Bus connection: Operation not permitted My docker file: `From centos:latest MAINTAINER Ijaz <ihmad@example.com> RUN yum -y update; yum ...
0
votes
0answers
70 views

systemd-boot freezes on keyboard input

I'm trying to boot architect Linux on my pc, which uses systemd-boot for its UEFI boot manager. The problem is, since I'm running a NVidia card, when i press e to edit the arguments so I can pass ...