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

0
votes
0answers
7 views

How to run gunicorn as systemd daemon

I use arch linux , I try to prepare gunicorn daemon to connect to nginx. But still I get errors ● gunicorn_yogavidya.service - Yogavidya gunicorn daemon Loaded: loaded ...
1
vote
1answer
12 views

How to run a script (when usb memory is plugged) automatically in Debian Jessie (Raspberry Pi)?

I'm working with Raspberry Pi. Previously, I used udev rule to run a script when a usb flash memory was plugged. The following was the content of /etc/udev/rules.d/10-usbstick.rules file: ...
1
vote
0answers
17 views

How to hide boot messages (silent boot) in debian jessie (raspberry pi)?

I'm working with raspberry pi. Previously (debian wheezy), I used the following codes to hide boot messages and have a silent boot, until a code (playing omxplayer on loop) would run from ...
4
votes
0answers
34 views

Can I use systemd to start and stop a service based on the presence of a file?

My config thus far is: foo.path [Path] PathExists=/tmp/foo.path [Install] WantedBy=multi.user.target foo.service [Unit] Description=Matt Test BindsTo=foo.path [Service] ExecStart=/bin/sh ...
2
votes
3answers
53 views

Shutdown procedure clarification

The book "How Linux Works" says the general shutdown procedure (independent of init system) is something like this: init asks every process to shut down cleanly. If a process doesn’t respond after a ...
0
votes
0answers
20 views

CentOS 7.2 Minimal Time synchronization timedated and/or ntpd/chrony

Environment: KVM CentOS 7.2 Minimal installation. I am trying to sync the time with an NTP server in my network. My Proxmox-Host (Debian based) is able to do this by enabling ...
3
votes
1answer
22 views

Mac randomisation with systemd?

Is it possible to randomise the mac address with systemd itself? I have heard that it is possible in newer versions of systemd.
0
votes
1answer
16 views

Systemd pause boot while script runs

I have a script that I want to run at boot, and whilst it runs I would like it to pause the boot process. I have tried the systemd service [Unit] Description=setup script Before=default.target ...
2
votes
1answer
39 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 ...
1
vote
2answers
35 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
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 ...
1
vote
0answers
16 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
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 ...
1
vote
2answers
36 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
80 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
30 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
50 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
27 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: ...
0
votes
0answers
10 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 ...
0
votes
2answers
36 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
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?
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 ...
2
votes
0answers
43 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 ...
3
votes
1answer
52 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 ...
2
votes
0answers
18 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
14 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
52 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
76 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
45 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
32 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
33 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
36 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
37 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
29 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
58 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
30 views

Systemd: Whats wrong with this unit? [duplicate]

I wrote this unit (/etc/systemd/system/[email protected]): [Unit] Description=TEST (%I) [Service] ExecStart=/bin/echo "%i %I" >> /home/vagrant/test.txt [Install] WantedBy=multi-user.target ...
3
votes
1answer
45 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
41 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
51 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
37 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
55 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
13 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
31 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
48 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
19 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
36 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
79 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
51 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 ...