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
20 views

systemd: default value for environment variable

I would like to migrate some OpenRC init script to systemd but I think that it is general problem of environment variables handling in systemd. Original OpenRC files There is a file e.g. ...
1
vote
0answers
21 views

Error file system check

I enabled the package e2fsprogs and always when the system starts it return the following error (when partition mounting): Jan 01 00:00:03 xxxx systemd[1]: Found device /dev/mmcblk0p3. Jan 01 ...
2
votes
2answers
44 views

How can I enable wpa_supplicant on boot?

I'm trying to enable wpa_supplicant on boot in Fedora 20. I created /etc/wpa_supplicant/wpa_supplicant.conf and am able to connect to my wireless network manually by running wpa_supplicant -B -i ...
0
votes
0answers
15 views

suddenly no service, except ssh is accessible from wan

I recently did install the GNOME Desktop and Graphical Administration Tools package groups to my remote host, for remote desktop connection. After the installation of nearly 550 dependencies was done, ...
2
votes
0answers
13 views

How do I run my program (and dbus) as a service on a headless server?

I have a Fedora 20 server running headless, which I want to run my service. I'd like it managed by systemd so that it runs whenever the server is powered on. My service is written in Python, and ...
1
vote
1answer
23 views

Enable systemd service file?

I have created a debian package for one of my autotool project.I don't have any problem in debian creation and installation.The problem is that debian includes a systemd service file and I'm ...
0
votes
2answers
50 views

I need to run a one line startup script under gnome and systemd

nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1 now what is the easiest way to run this one bash line of code at startup??? I am running Gnome 3.14.
1
vote
1answer
38 views

Where are the systemd configuration Files?

How do I enable particular units in particular targets? Once enabled, where is the configuration stored?
0
votes
2answers
49 views

How to configure network for pluggable ethernet adapter under ArchLinux (systemd)?

I have an USB ethernet adapter, but I am not sure how to configure it that the network is set up properly when the adapter is plugged in and out. Can I add something to netctl's config file to link it ...
3
votes
1answer
46 views

How to create user cgroups with systemd

I use unprivileged lxc containers in Arch Linux. Here are the basic system infos: [chb@conventiont ~]$ uname -a Linux conventiont 3.17.4-Chb #1 SMP PREEMPT Fri Nov 28 12:39:54 UTC 2014 x86_64 ...
2
votes
1answer
32 views

Problem mounting additional partitions after kernel update

Today I upgraded my pretty ancient Debian Linux kernel (3.2-23) to 3.16-7. The machine boots okay, except that some fstab entries are suddenly causing issues. # /etc/fstab: static file system ...
0
votes
1answer
28 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?
1
vote
1answer
51 views

Why does my script does not run in runlevel 0?

I made a script with following LSB header #! /bin/sh ### BEGIN INIT INFO # Provides: updateservice # Required-Start: $local_fs $time $network $named $syslog # Required-Stop: $local_fs ...
2
votes
3answers
63 views

Why is my Debian jessie always in runlevel 5?

I have configured the line in /etc/inittab as follows: # The default runlevel. id:2:initdefault: But after logging in the output of runlevel is as follows: N 5 So why am I in runlevel 5 instaed ...
2
votes
1answer
36 views

How to direct the journal output of certain units to a particular file?

I've got a system with several daemons running (as systemd units) that output log information to the journal in Arch Linux. I want to direct the journal output of some of those unit files into a ...
0
votes
1answer
19 views

LUKS partition is unlocked after first use

I just tried to move /usr to a small ssd I recently purchased. The ssd is formatted with LUKS and btrfs. Apparently systemd fails to start the cryptography target before the partitions are first ...
0
votes
2answers
47 views

list of selectable units for journalctl

In a CentOS 7 server, I want to get the list of selectable units for which journalctl can produce logs. How can I change the following code to accomplish this? journalctl --output=json-pretty | ...
1
vote
1answer
67 views

log files in CentOS 7 [closed]

In CentOS 7, how can I locate and view all the system logs that tell me who tried to enter the system, who got in, what processes they contacted, what they accomplished, etc. I want to be able to ...
1
vote
2answers
37 views

service vs. systemctl scripts — which to use

In Fedora we have 'systemctl' and 'service' scripts. It seems that service internally calls systemctl. So what is the correct/right way on Fedora to start or stop services -- via systemctl or service ...
1
vote
1answer
52 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 ...
1
vote
0answers
56 views

How does _netdev mount option in /etc/fstab work?

I'd like to know what is the exact mechanism (implementation) used to defer mounting until after network interface is up when one uses _netdev option in /etc/fstab? Does systemd alter this behavior? ...
1
vote
1answer
58 views

systemd mount only mounts on boot, fails to remount afterwards

I have created a mount, mnt-stoneshare.mount, placed in /etc/systemd/system: [Unit] Description=StoneOS Storage Mount [Mount] What=/dev/disk/by-uuid/62721034-29ee-4894-a19e-905bcbb20c7c ...
2
votes
0answers
31 views

How to implement policy conform systemd custom actions on Debian?

What do I mean by custom actions? Here are some examples. sudo service apache2 stop-htcacheclean sudo service apache2 graceful-stop sudo service apache2 start-htcacheclean sudo service apparmor ...
0
votes
1answer
21 views

How to script with systemd-cgtop?

The manpage for systemd-cgtop says that if there is no attached tty it will do one iteration and then print it out, saying that this would be useful in scripts. However when I try to do this from a ...
1
vote
2answers
100 views

Can't start systemd user instance

I'm using CentOS 7, and am trying to create a systemd service for my local user. However, before I can do that, I need my systemd user instance, which I cannot find or create to begin with. Running ...
0
votes
0answers
21 views

Limit system reboot burst

Systemd allows to automatically restart services if they have crashed. To prevent indefinite services restart it uses @StartLimitInterval@ and @StartLimitBurst@ variables. Moreover, I can reboot ...
0
votes
1answer
199 views

What is wicked taking so long during boot?

This is wicked 0.6.12 and systemd 210 on openSUSE 13.2. Networkmanager is not installed. The network interface is configured with a static IPv4 address. Plymouth is not installed because I prefer to ...
0
votes
0answers
42 views

Disabling all systemd messages from appearing on console

Is there an option to completely prevent all of systemd's messages from appearing on the console? I see these messages appearing on the console and they often come in the way of console logins and ...
1
vote
0answers
27 views

Enable core dumps for all applications started by a user with systemd

This is a follow-up to How to enable crash reports/core dumps/stack trace logging globally?: How can I achieve this on OpenSUSE 13.1 (which uses systemd) and 13.2 for all processes started from an ...
4
votes
1answer
135 views

How to disable systemd's “Time has been changed” message spam in systemd journal while using sdwdate?

Due to combined use of Debian jessie, that uses systemd by default, and sdwdate (that uses Slow Clock Adjuster ( gh )), my system clock is frequently changed. As a result journalctl -f gets endlessly ...
2
votes
1answer
46 views

Preserve environment variables using systemd?

Do systemd unit files support preserving existing environment variables? (Something similar to sudo -E?) Not referring to Environment= or EnvironmentFile= here. It would be be useful if systemd ...
2
votes
1answer
182 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 ...
4
votes
1answer
341 views

CentOS 7 boots too fast and network is not ready when executing cron scripts

I have just upgraded from CentOS 6.5 to 7.0 and I am not too happy as the new systemd is probably giving me problems. It seems it is just simply booting too fast, starting up processes asynchronously ...
0
votes
0answers
85 views

system won't poweroff, restarts with :“Synchronizing SCSI cache”

Running Debian testing, after a system upgrade a while back my machine started to refuse to power down. It hangs with: Synchronizing SCSI cache Waits a few seconds, and then reboots itself. It ...
2
votes
1answer
48 views

Output of a python script running as unit is out of order while shells seems unnafected

How would I get all outputs of systemd managed python2 script instantly into journal, just like it appears in terminal I'm on centos 7, but seems to be same on arch according to systemd manual, ...
4
votes
2answers
197 views

Non-graphical boot with systemd

I want to boot to console instead of a GUI using systemd. How can I do that?
-1
votes
1answer
394 views

systemd slow boot - systemd-tmpfiles-setup

Recently I upgraded to debian jessie (current testing) and after that avg boot time has increased to 3-4 minutes. Between grub and gdm start, I get this message for 2-3 minutes. A job is running for ...
1
vote
1answer
71 views

Auto-hibernate with udev rule

I'm using Debian Jessie with systemd. In the past I've used an acpid script that let's my computer hibernate when the battery is 5% or below. In an attempt to make a replacement for that I've made ...
1
vote
1answer
158 views

With systemd-networkd, perform an action upon network configuration change

I am switching from Debian’s ifupdown to systemd-networkd, and it mostly works fine. One missing bit is that upon every network change, I want to call killall -ARLM tinc, so that my VPN is going up in ...
0
votes
1answer
295 views

service command does not work in centos 7

I used to use service command for restarting, reloading, and checking status of service on centos 6.5 like below: $ sudo service nginx restart OK $ sudo service nginx status ...
2
votes
1answer
377 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 ...
0
votes
2answers
46 views

how to get info about the user and the processes he is running in systemd?

If I wanted to know who is logged in since when and what are the processes currently running under his control, how can I do that in systemd?
0
votes
0answers
52 views

Systemd, restart service when ip address changed

I wrote a pretty simple service: [Unit] Description=Service on interface %I [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/lib/project/my_script.sh start %I [Install] ...
2
votes
2answers
161 views

What is systemd's target, service and socket?

I know that all of them are unit files, but I can't understand the special meaning of them. I think that targets are similar to daemons and sockets are the same as socket (IP + port) but also with ...
0
votes
0answers
49 views

systemd with 10 ttys and Desktop on Ctrl+Alt+F5

I am running systemd on ArchLinux. I have read various posts of doing this but it seems impossible (i.e. I am incompetent in implementing this:)) ). I want to disable the on-demand tty spawning of ...
0
votes
1answer
257 views

Graceful shutdown via power button

I want to be able to shutdown my CentOS 7 machine by pressing the power button. Since it doesn't work out of the box, I tried the following: yum -y install acpid service acpid start chkconfig acpid ...
1
vote
2answers
40 views

How can I count the time that needs systemd to boot a default target and then graph it?

When I wanted to know how long systemd actually needed to boot the default target, how would I do that ? An then, is it possible to create a graph to show which unit takes how much time to initialize ...
1
vote
2answers
195 views

In systemd what is the difference between inactive vs disabled and active vs enabled services?

I'm studying SystemD and I am little bit confused by the concept of enabled or active and disabled or inactive. Can you explain it or provide a sort of an example?
2
votes
1answer
43 views

linux systemd intercept shutdown if service is active

I've created a little update/upgrade program for my arch-based linux. Instead of using a cronjob I'm using systemd and created following files: in /etc/systemd/system: uupgrades.target & ...
2
votes
2answers
101 views

Does systemd still know about runlevels?

Does systemd still have the concept of runlevels? For example is it pointless to use telinit <number>?