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
101 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 ...
0
votes
1answer
19 views

Where to find/get systemd-journal-gatewayd.service on Debian Jessie?

It seems systemd-journal-gatewayd daemon was introduced in systemd version 193. I'm running Debian Jessie with verison 215 of systemd, but do not have this daemon. $ systemd --version systemd 215 ...
1
vote
0answers
8 views

Interrupt systemd mount unit during boot

I've Btrfs RAID1 mounted during boot with this line in fstab: /dev/disk/by-label/storage /mnt/storage btrfs noatime 0 0 Few days ago I was checking data on some old disks, and to connect them I ...
2
votes
2answers
38 views

/sbin/init doesn't exist - Bailing out

My question is similar to this one, but has a few differences. At boot, I get the following message: [ 0.030164] Ignoring BGRT: invalid status 0 (expected 1) :: running early hook [udev] starting ...
1
vote
1answer
591 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
2answers
3k views

ERROR: Root device mounted successfully, but /sbin/init does not exist

I've installed Linux Mint and Manjaro Linux on my computer. I installed only the Linux mint on the MBR. For Manjaro, I created a /boot/efi partition, but I have not checked to install to MBR. So, I ...
4
votes
2answers
50 views

Creating a systemd script for Sybase ASE

I've been trying to set up our Sybase installation to run under systemd. The basic commands are covered here but when we control it manually we start it with the following command (startserver exits ...
0
votes
1answer
27 views

How to change systemd service timeout value?

In the company I am working now there is a legacy service and its init script is using old SysvInit, but is running over systemd (CentOS 7). Because there's a lot of computation, this service takes ...
-3
votes
3answers
64 views

Is there a designated place for scripts that are (indirectly) automatically executed by systemd?

Arch Linux Question (or any OS that uses systemd to manage processes and follows the Filesystem Hierarchy Standard by the Linux Foundation) I recently asked where to but a systemd unit file: Where ...
2
votes
2answers
53 views

Where do I put my systemd unit file on Arch Linux?

Sometimes these things can be hard for first-timers. Being a do-it-myself person, I read that there are two folders for unit files (not in user mode). /usr/lib/systemd/system/: units provided by ...
5
votes
1answer
3k views

How to automatically force fsck disks after crash in `systemd`?

Sorry for bad english. How to set systemd for automatically force fsck disks after crash (hard poweroff)? When I used sysvinit (in Arch Linux) as /sbin/init I used the hack: in the rc.local I create ...
2
votes
2answers
46 views

Udev hwdb rule does not work

I am switching from Ubuntu to Arch Linux and encountering the issue that a udev hwdb rule that has worked until now does not work anymore. The only obvious difference between the systems is that ...
2
votes
1answer
79 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
4k 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
28 views

Bootup is not yet finished. Please try again later

My computer starts in around 40s but I keep getting this message for 10 minutes: Bootup is not yet finished. Please try again later. After 10 minutes I get this: Startup finished in 6.020s ...
2
votes
1answer
34 views

What do systemd “Vacuuming done, freed 0 bytes” messages mean?

I'm seeing messages like the following in my systemd journal: systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming done, freed 0 bytes systemd-journald[52]: Vacuuming ...
3
votes
3answers
15 views

finding systemd unit 'owning' a running daemon process

To debug a JACK/Pulseaudio issue, I want to understand when and why the pulseaudio daemon is started by systemd (on Fedora). Using $ ps -o'pid,ppid,args' `pgrep pulse` is see that the pulseaudio ...
3
votes
4answers
3k views

Why is my Debian jessie always in runlevel 5?

I have configured the lines 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 ...
1
vote
0answers
11 views

How to enable unison to login with ssh from systemd service unit?

I have a pdf-sync.path file for systemd runnin in user-space (systemctl --user enable pdf-sync.path). Whenever there is a change in the folder that I defined in the path file I want to synchronize ...
0
votes
0answers
27 views

A lot of systemd messages since upgrade to Fedora 22

I upgraded several systems to Fedora 22. After the upgrade I see every 10-20 seconds a lot of messages form systemd: Aug 27 15:30:09 host.example.org systemd[1]: Created slice user-494.slice. Aug 27 ...
4
votes
2answers
445 views

systemd - Timer units that mimic anacron behaviour

I need to write a timer unit for a machine which is turned of frequently (e.g. classical desktop setup). This timer unit needs to be activated regularly but not very often (e.g. weekly, monthly). I ...
0
votes
0answers
14 views

systemd: network-online.target is reached before network.target

I observed the following in the Archlinux installation ISO: There is a systemd target definition in /usr/lib/systemd/system/network-online.target containing: [Unit] Description=Network is Online ...
3
votes
1answer
3k views

systemd timer every 15 minutes

I'm trying to make a systemd timer that runs every 15 minutes. Right now I have: timer-fifteen.timer: [Unit] Description=15min timer [Timer] OnBootSec=0min OnCalendar=*:*:0,15,30,45 ...
1
vote
1answer
32 views

How to see full log from systemctl status service?

I check service status with systemctl status service-name. By default, I see few rows only, so I add -n50 to see more. Sometimes, I want to see full log, from start. It could have 1000s of rows. ...
8
votes
3answers
2k views

Run Script once a day with systemd

I want to run a backup script 10 minutes after booting up my machine but only once a day. Is it possible to build up such scenarios with systemd?
2
votes
1answer
4k views

Fedora 16 using systemd kernel boot parameters to change 'runlevel'

It says in the fedora documentation that you can append this line to the boot options to change the *.target that loads temporarily at boot. systemd.unit=rescue.target Nothing seems to happen it ...
0
votes
0answers
22 views

I can't enable or disable a user service: Failed to execute operation: No such file or directory

I want to debug/test a program in eclipse that uses a Redis server so I decided to turn the server into a user service to have the privilege of running it. What bothers me is that I can start or stop ...
7
votes
6answers
9k views

Using OpenVPN with systemd

Ok, so I've been searching the web for solutions to this problem with no answers seeming to work for me. Hopefully someone can help me. I'm only trying to configure the OpenVPN Client. I'm running ...
1
vote
0answers
41 views

Debian Jessie, copy file on NFS share (autofs) at shutdown

I'm on Jessie 8.1 so I use systemd to launch a service at shutdown. My service uses a script to copy a file on a NFS share (mounted by autofs). It doesn't work, I know the script can copy a file on ...
14
votes
2answers
4k views

How to get fewer ttys with Systemd?

In the old days I just modified /etc/inittab. Now, with systemd, it seems to start tty[1-6] automatically, how should I disable tty[4-6]? Looks like there's only one systemd service file, and it use ...
31
votes
1answer
60k views

How to write startup script for systemd

I have 2 graphics cards on my laptop, one is IGP and another discrete, I've written a shell script to to turn off discrete graphics card. How I can convert it to systemd script, to runt at start-up?
1
vote
0answers
27 views

How to configure Systemd User Service with a Timer

I have a systemd user service that works as expected. It is started like this: systemctl start test@user The problem is that I need to run this service on a timer possibly for multiple users. There ...
3
votes
1answer
605 views

Inherit environment variables in systemd Docker container

I have a Docker container running systemd. I want to pass environment variables to applications under it. When I start systemd from within Docker (/sbin/init as command line), Docker exposes ...
4
votes
2answers
81 views

Where is the `$TERM` environmental variable set in Debian Jessie for console logins?

I have read a lot of articles and SE questions regarding how and where the default $TERM environmental variable gets set. Unfortunately in Debian 8.1 I can't seem to find where the default $TERM ...
0
votes
2answers
19 views

Systemd optional service dependency that checks for error

I'm trying to rewrite an init script to systemd, but I'm struggling with an issue of optional dependencies. My service depends (optionally) on two other services. These two dependencies are mutually ...
2
votes
1answer
24 views

Defer some daemon startups until after disk idle at boot

Background: I have a laptop running Debian testing/unstable and booting with systemd. It's got a normal laptop magnetic hard drive (not an SSD). The machine is set to auto-login when turned on, so it ...
1
vote
3answers
32 views

Dynamic logic in systemd service file

I'm trying to rewrite an init.d service file that contains the following code: if [ ! -r /var/spool/torque/server_priv/serverdb ]; then DAEMON_SERVER_OPTS="-t create ...
4
votes
1answer
36 views

what tools to investigate failure to suspend on laptop lid close?

My laptop sometimes suspends when the lid is closed, and sometimes doesn't. Here's some output from journalctl, which shows the suspend triggering maybe one in five or six times -- Logs begin at Sat ...
5
votes
1answer
249 views

SIGKILLing after a grace period

I've seen a lot of process managers that try to do this. It was my understanding that you should only use SIGTERM to kill a process. The process could take an unknown amount of time to clean up after ...
2
votes
1answer
121 views

Why does bash parameter expansion not work inside systemd service files?

I am trying to use systemd's EnvironmentFile and add an option to the command when it is set in the file. I have the following in the unit file: ExecStart=/usr/bin/bash -c "echo ${PORT:+port is ...
3
votes
1answer
29 views

systemd support for toggling mutually exclusive services?

I have two versions of a service that I occasionally want to switch between - my-service-a and my-service-b. I want my-service-a to always be the one which is running when the system is booted. ...
3
votes
1answer
1k views

How to force systemd enter in emergency mode?

I'm using Opensuse 12.3. systemd-195-13.45.1.x86_64 After few problems when I added a disc at btrfs mount I'm trying put my system in emergency mode (which I consider all services will be stopped and ...
0
votes
1answer
28 views

echo or sed out of a ks-file to generate a mysql_secure script

i will create a KS File (Kickstart for automated OS installation). i install mariadb with the ks file. But it seems a problem to execute the mysql_secure script. My idea is to generate a script in ...
1
vote
1answer
592 views

How to start a perl webserver with systemd?

I copied this this file (vokabel_daemon.service) [Unit] Description=Start vokabeltrainer daemon After=network.target [Service] ExecStart=/home/mm/lib/vokabeltrainer/box_vokabeltrainer.pl daemon ...
0
votes
1answer
2k 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 ...
31
votes
2answers
24k views

View stdout/stderr of systemd service

I have created a simple systemd service file for a custom application. The application works well when I run it manually, but my CPU gets maxed out when I run it with systemd. I'm trying do track ...
2
votes
1answer
110 views

How to tell systemd to start sshd later in the boot sequence?

My sshd_config file specifies it should listen on some specific IP addresses instead of on all IP addresses. The problem is that one of these NICs doesn't come up until later in the boot sequence. ...
0
votes
1answer
30 views

Why is my Systemd unit arkos-redis loaded, but inactive (dead)?

Here's what I have in my service file, arkos-redis.service: GNU nano 2.4.2 File: /usr/lib/systemd/user/arkos-redis.service [Unit] Description=Advanced key-value store [Service] ...
2
votes
2answers
32 views

Create persistent process without inittab

I have a virtual server running Ubuntu 14.04 LTS x64 and I want to create a persistent process that restarts with the system and when it crashes. To do that, I've added the following lines to the ...
2
votes
1answer
182 views

Listening for journalctl changes

Usually i use tail -f /var/log/messages to get updates if there are new lines How to have the similar functionality for journalctl?