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
486 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), ...
2
votes
1answer
914 views

Why is systemd-udev pegging my CPU?

I've noticed that one of the cores on a four-core laptop is pegged, and the temp is very high. I found this in top: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 359 ...
2
votes
2answers
51 views

using systemd timers instead of cron

I am on Arch Linux where I am trying to create a systemd timer as a cron alternative for hibernating my laptop on low battery. So I wrote these three files: /etc/systemd/system/battery.service [...
5
votes
2answers
50 views

Making environment variables available for downstream processes started within an init.d script

This questions stems from @FrustratedWithFormsDesigner comment. How do I make export environment variables set within an init.d script available to downstream processes started within that same init....
3
votes
5answers
10k views

Apache won't start on Fedora 15

I can't get Apache to start on Fedora 15. I downloaded a project into /var/www/html and changed myself to the owner (recursively), though I don't think I changed any SELinux contexts or anything like ...
1
vote
2answers
10k views

How can I set up Virtual Hosts in Centos7?

I am trying to set up virtual hosts in Centos7. I followed this guide: http://twohlix.com/2011/05/setting-up-apache-virtual-hosts-on-centos/ however I keep getting the following error: Job for ...
0
votes
0answers
9 views

mount samba shares at boot with systemd

I have some Samba shares that I want to mount at boot time. They're not needed for anything immediately, but I'd like them to be available when I first access them. I've tried using a .mount file ...
118
votes
6answers
53k 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?
0
votes
1answer
25 views

Limit the number of mod_mono_server4 process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot timee?

How do I limit the number of mod_mono_service process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot time? The way to specify the number of Apache server ...
10
votes
3answers
5k views

How to change timeout in systemctl

When I boot on my debian, startup hangs for approx 2 minutes on the line: Loading, please wait... [ 5.191043] systemd-fsck[129]: /dev/mmcblk0p2: clean, 234192/873120 files, 2335263/3491328 blocks [...
0
votes
1answer
38 views

How to start multiple mod-mono-server4 Linux process domains at reboot time?

I would like to know how to serve multiple ASP.NET applications on multiple mod-mono-server4 Linux process domains. I am running Ubuntu 16.04 on a Lenovo ThinkStation desktop. Here is how I plan to ...
2
votes
0answers
13 views

Limiting users ram with cgroups not working (for me)

I registred because I didn't manage running cgroups with several tutorials/comments/whatever you find on google. I want to limit the amount of ram a specifix user may use. Internet says "cgroups". My ...
2
votes
1answer
83 views

Universal way to logout from terminal via dbus

I'm new with dbus, and saw different ways to log out from terminal depending on desktop env. But I'm curious is there any way to log out from any desktop env using dbus messages? On GNOME: dbus-send ...
0
votes
2answers
59 views

How to start up k=10 Apache2 server processes upon Ubuntu 16.04 alpha release reboot?

I would like to know how to start up k=10 Apache2 server processes upon Ubuntu 16.04 alpha release reboot. Yesterday, I read this URL, [https://rudd-o.com/linux-and-free-software/tuning-an-apache-...
1
vote
1answer
35 views

kick off a systemd service just before shutdown

I am developing a systemd shutdown script (unit file) for a postgresql database and I followed the below two posts but could not get it to work. How to run a script with systemd right before shutdown?...
0
votes
1answer
35 views

Configuring simple service with systemd

We are using Bamboo server for continues integration with remote agents which are building our projects. These agent can be started up with a simple shell script (which works fine). But I thought I ...
3
votes
1answer
28 views

Ignore sshd inhibitors when rebooting

On my home PC, I set up sshd as an SFTP server so I could share files with my friends. However, when I attempt to reboot and someone has an SFTP client connected, I get the following message: $ ...
3
votes
1answer
811 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
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 ...
4
votes
2answers
43 views

How to fix unit attribution of last lines of systemd logging before exit?

I have a systemd service which logs to stdout. From there, systemd captures STDOUT and writes it to the journal. I use a common idiom for handling an error where I echo some diagnostics, then exit ...
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
0answers
17 views

Laptop reboots instead of resuming from systemd suspend when on battery power (suspending on AC power works)

After some updates to the kernel, my laptop doesn't resume anymore if it's not connected to a power source. If I plug in the AC and then suspend, it will resume. I thought that this was related to ...
2
votes
0answers
27 views

Restrict /proc/mounts to avoid exposure of /run/user/

EDIT: Currently looking at this solution.. (namespaces), but still wouldn't mind any pointers for doing what I'm after another way. We have a custom SELinux policy on CentOS 7.2 which confines users ...
0
votes
0answers
14 views

systemd-networkd fails to start when network booting via pxelinux

I created a systemd link file to enforce persistent network interface naming for a stack of network-booted hosts. Because the MAC varies between machines, I have to use the PCI path for matching the ...
4
votes
1answer
64 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 /...
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:...
0
votes
0answers
5 views

How to make VirtualBox related services manually started in Fedora 23?

Fedora 23 boots up too slowly, so I check it by using systemd-analyze blame, and this is the output: 1min 22.379s plymouth-quit-wait.service 17.100s firewalld.service 10.799s akmods.service ...
3
votes
4answers
3k views

What's the best way to have uwsgi create a '/run/uwsgi' folder on reboot?

I have set up a Django project to run with uwsgi and nginx and it's all running as expected, except that when I reboot uwsgi will not launch correctly until the /run/ folder is recreated on the fs. /...
1
vote
0answers
24 views

Systemd linked unit files on mounted disk fail to load

We have an internal application with systemd services that we want to deploy outside of the normal systemd directories (/etc/systemd/system and /usr/lib/systemd/system). That location is on another ...
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
78 views

Login not chdir()ing to correct home directory (AD/realmd/sssd)

I'm forced (ugh) to join several linux machines to a domain. I'm currently using debian stable, and am joining the machines using a join script I wrote (at https://rbmj.github.io/join.sh for ...
17
votes
3answers
1k views

Documentation: Architecture of Linux Session

I'm looking for a good overview documentation describing the the stack of daemons and services involved in a modern Linux session. Although having read various documentation about dbus, and systemd, ...
1
vote
1answer
452 views

Why can't I properly locate Debian 8.1 on my BeagleBone Black?

I was using the BBB (BeagleBone Black) for a while now but with Arch Linux. Now that Debian also supports systemd I decided to give it a try. So I followed this guide and used the eMMC flasher image ...
1
vote
1answer
23 views

apache and systemctl status

We use SUSE Linux Enterprise in our company. We now have got our first SLES 12 machine (this is the first version in SLES that systemd is used). I found a link where somebody says that "start", "...
3
votes
0answers
24 views

Laptop sleeps by itself - in logs “Sleep requested” - requested by what?

I left my Linux laptop on with the lid open while it was on battery power for several minutes, and it went to "sleep" (according to the systemd journal) - I assume this means the same as hibernation? ...
1
vote
0answers
26 views

Failed to get D-Bus connection: unknown error -1

Running OSMC on my Raspberry Pi 2b. I set up a samba share a few days ago, there is nothing else I've done for the last few weeks with the Pi besides running a few daemons. It's running 24/7. Now ...
0
votes
0answers
29 views

Error building LiveCD for LFS

I've build an LFS with systemd recently and went to make a liveCD for it using this hint I've previously built an LFS with sysvinit and used that hint which worked perfectly. But this time I got a ...
5
votes
1answer
2k views

Enable systemd-baclight@intel_backlight instead of systemd-backlight@acpi_video0

I have 2 files in /sys/class/backlight/ - acpi_video0 and intel_backlight. intel_backlight is the one which controls my screen brightness (echo/cat), however acpi_video0 is the default. By default ...
2
votes
1answer
46 views

kernel init without 'root=' parameter

From systemd/fstab-generator.c it follows that systemd treats root= as required kernel parameter, the only configuration source for /sysroot mount. However from kernel/init/main.c and kernel/init/...
5
votes
2answers
1k views

How to permanently disable root-password prompt for recovery mode, RHEL7

Note: I asked a similar quesiton concerning version 6 of these bundles here. Note that 7 uses systemd and may have a different implementation In the rare cases that a RHEL or CentOS 7 system is ...
1
vote
0answers
56 views

Interrupted apt upgrade broke udev and systemd

During an update of my Raspbian installation (Pi rev. B+) over SSH I lost connection. After a hard reboot (which may have happened during or after finishing the update) the udev kernel device manager ...
5
votes
3answers
1k views

command not running in cron (systemctl suspend)

I have this cronjob set : * * * * * /usr/bin/systemctl suspend And it is not working. But I can run it in a shell and it works. I don't understand what could be not working. EDIT Redirecting error ...
4
votes
2answers
54 views

Explanation of file - org.freedesktop.login1.policy

I am using Ubuntu 16.04. There is a file located at /usr/share/polkit-1/actions/org.freedesktop.login1.policy which seems to control the permissions regarding shutdown/suspend/hibernate options. ...
2
votes
2answers
53 views

Systemd Restart=always is not honored

I'm using systemd to keep a worker script working at all times: [Unit] Description=My worker After=mysqld.service [Service] Type=simple Restart=always ExecStart=/path/to/script [Install] WantedBy=...
6
votes
2answers
16k views

How can I autologin to desktop with systemd?

How can I configure systemd to automatically log me in to my desktop environment, preferably without using login manager? I'm using Arch.
2
votes
2answers
39 views

systemd: lie about process name using sh -c exec idiom

I'm using the sh -c exec idiom in an ExecStart statement (in a service unit file) to interpolate some shell commands. For example: ExecStart=/bin/sh -ec "exec /usr/bin/foo $(/usr/bin/foo-config)" ...
1
vote
0answers
36 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 because it adds its own NAT rules to the firewall. How ...
3
votes
0answers
64 views

How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4?

How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4? I have already defined an Ubuntu Linux16.04 systemd service for apache2 by copying obex.service to apache2....
0
votes
0answers
22 views

Systemd, start user level unit with sudo access.

I have a debian package which installs my software and it needs to start two applications in post install script. First one is daemon and the second one is a background process both are managed with ...
1
vote
1answer
44 views

How to use SystemD to run a game server 24/7?

I'm relatively new to Linux (CentOS 7.2). I'm trying to get my Hurtworld servers to run from systemd so I can use that nice restart=always feature. However to get multiple HW servers running, I ...