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.
2
votes
0answers
15 views
What is needed for a minimal systemd boot to launch getty on a virtual console?
For SysV init, I need /etc/inittab respawning getty entries, the /sbin/init binary, the binaries and shared libraries for the shell, login, the getty, the PAM/security/shadow stuff, and a few device ...
1
vote
0answers
17 views
systemctl to start cron-like job
In /etc/systemd/system directory I have:
rsnapshot-backup.service file, with following content:
[Unit]
Description=rsnapshot backup automation [cron like]
[Service]
Nice=19
IOSchedulingClass=2
...
5
votes
0answers
53 views
How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?
Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service:
[Unit]
Description=Lock X session
Before=sleep.target
[Service]
Environment=DISPLAY=:0
...
1
vote
1answer
21 views
Why my systemctl v208 command doesn't support some features?
I'm presuming there's a patch somewhere where Debian decided to disable it, but I can't find it nor the changelog entry. There are several commands that aren't available, like dot, dump, list-timers ...
1
vote
0answers
23 views
How to determine a log's source process spawned from a systemd service?
I have a systemd service which starts multiple 3rd-party processes which output to standard output. Is there anyway to easily determine which logs are from specific process from the system journal?
...
3
votes
3answers
56 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 ...
2
votes
1answer
44 views
systemd timer needs to run ExecStop at shutdown/reboot
The scenario is that I have a CentOS v7.0 system that can have up to four instances of JIRA running, the instances are Production, Staging, Development and BETA.
When I start the system I want all ...
0
votes
0answers
18 views
Can't access GPIOs when switching to systemd, but why?
I'm using this ARM AT91 Sam9x5ek Embedded Device, with my Linux Images made by a Buildroot. Usually my init-system is Busybox, now I changed it to systemd. Since then I can't access the GPIO anymore, ...
0
votes
2answers
58 views
Can't start mysql service
Trying to start my mysql service.
/etc/init.d/mysql start
returns:
Job failed. See system logs and 'systemctl status' for details.
Further:
systemctl status mysql.service
returns:
...
2
votes
1answer
37 views
systemd mount volume using device symlink
I'm trying to have systemd mount a volume by symlink. Unfortunately when I try it times out waiting for the systemd device to show up.
# systemctl start mnt-ephemeral0.mount
A dependency job for ...
2
votes
0answers
16 views
Systemd user unit that depends on system unit (sleep.target)
I was reading doc and it is still unclear for me, whether the following is possible to accomplish:
service defined in ~/.config/systemd/user/task.service that depends on system sleep.target ...
1
vote
0answers
68 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 ...
1
vote
0answers
25 views
systemd start unit after another unit goes inactive
Is there any way to delay a unit from starting up once another unit goes inactive? I have a startup process (oneshot.service) that runs as a one-shot and sets up the environment for all other ...
8
votes
1answer
132 views
What makes systemd-nspawn still “unsuitable for secure container setups”?
This is stated in the man page for systemd-nspawn
Note that even though these security precautions are taken
systemd-nspawn is not suitable for secure container setups. Many of
the security ...
0
votes
0answers
40 views
Issue with network interfaces in Fedora 20
I am using Fedora 20 with NetworkManager disabled and the network service enabled. I am creating virbr0 with eth0 binded to it and using dhcp. I have disabled current network interface naming ...
1
vote
0answers
29 views
clamd randomly stops
I am using clamav in conjuction with c-icap to filter content with squid. I am also using the safebrowsing functionality of clamav to block access to bad domains. For some reason or another, clamav ...
2
votes
0answers
23 views
monitor running services and ports
What is the best way to monitor running services and ports on a system with systemd?
My intent is to alert me, when a service stops running or if a new service is listening on a new port (possibly a ...
7
votes
1answer
107 views
How to enable “Predictable Network Interface Names”?
I decided to check out what name my ethernet device will end up with, but contrary to other distros, Debian doesn't seem to have activated this change (or is holding it back?),
* Keep the old ...
5
votes
1answer
45 views
How do I start service in systemd right after cryptsetup?
I have an ArchLinux installation with systemd. I am trying to run a hook immediately after my encrypted data device is mounted in order to put flashcache on top of it. I have scripts that work, ...
1
vote
2answers
299 views
disable init.d script in systemd
I changed the init system from sysvinit to systemd on a raspbian installation. The install boots fine, but now starts lightdm on boot. I don't want it to do that.
I noticed lightdm.service is started ...
4
votes
2answers
374 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 ...
0
votes
0answers
26 views
Modifying networking and daemons using systemd
I'm trying to follow this guide however, it appears rc.conf is discontinued and systemd has taken over. How can I modify the networking and daemons shown in step one using systemd? Any help is ...
2
votes
1answer
267 views
How to clear journalctl
I couldn't find in google any safe way to clear systemd journal. Do anyone know any safe and reliable way to do so?
Added:
As a reason, let's say I was experimenting with something and my logs got ...
2
votes
1answer
84 views
How can I prevent systemd from freezing my system when Flash dies?
Since a recent update, when I quit a web page containing a Flash animation in Firefox, the plugin-container process becomes a zombie, and then the systemd-journald process (also maybe something like ...
2
votes
2answers
273 views
Arch Linux run script a minute after boot
I have set up a bridge between eth0 and wlan0 with netctl. It works fine if I tell it to configure eth0 and wlan0 at startup and then for me to manually start the bridge after it boots. If I tell the ...
2
votes
0answers
24 views
CGroup Processes Not Terminated even when main process has been killed through Systemctl stop command
I am running systemctl stop process command for some process.
Please find the output for systemctl status process below:
Loaded: loaded
Active: deactivating (stop-sigterm)
CGroup: ...
0
votes
0answers
61 views
Systemd: Timeout a service
Is there a way to have systemd stop a service after it has been running for X amount of seconds?
I looked at just wrapping ExecStart with timeout, however I believe it might not work if my service is ...
3
votes
1answer
46 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 ...
3
votes
1answer
166 views
Why is my Systemd unit loaded, but inactive (dead)?
I'm trying to set up Graphite on my server. I can start the Carbon Cache daemon no problem with sudo /opt/graphite/bin/carbon-cache.py start, but I'm struggling to run it as a Systemd unit.
Here's ...
0
votes
0answers
40 views
Why is there no graphical.target listed by “systemctl list-units --type=target”?
According to Fedora documentation, graphical.target is the default. And,
# systemctl list-units --type=target
will list all available targets.
However, the command above outputs as follows without ...
0
votes
0answers
47 views
Changing systemd dependencies during boot
I am looking for a way to instruct systemd to recalculate service dependencies while the system is booting. Specifically, I need one service to be able to enable another service, and have the second ...
4
votes
1answer
96 views
How to get access to the root journal for systemd?
When I execute journalctl -f -a under Fedora 20 for different users I get different results. For root I get something similar to tail -f /var/log/syslog on older systems. As normal user I get ...
2
votes
1answer
27 views
Failed to open [email protected] configuration file
I have installed Network Manager, I don't have netctl installed. Whenever I boot my Linux computer I get the following error message:
systemd[1]: Failed to open configuration file ...
2
votes
1answer
112 views
Remove the newline before `/etc/issue` in tty
I want to remove the default newline inserted before the content of /etc/issue on login prompt in tty. I'm using agetty and systemd.
I tried to add the --nonewline option to my [email protected] :
...
1
vote
1answer
67 views
Systemd fails to start after removal of encrypted swap partition on Fedora 20
In order to resize my boot partition I had to recreate my swap partition. After this systemd does not seem to be able to start.
I am new to Fedora/systemd and don't quite understand where I could ...
1
vote
1answer
58 views
Sysctl parameter change after every reboot
I have found that the value of net.netfilter.nf_conntrack_count variable change every time i reboot the system. Did any one have an explanation for that?
3
votes
0answers
52 views
Wildcard automounts with systemd
I’m running jessie/sid with systemd 208 and try to convert the following wildcard autofs configuration to either an /etc/fstab or .mount/.automount definition.
$ cat /etc/auto.master
/home/* ...
1
vote
0answers
108 views
Modifier keys cannot be mapped to regular keys on USB keyboard with udev
Using an hwdb file, /etc/udev/hwdb.d/99-keyboard.hwdb, I can remap the left Alt key on my USB keyboard as the Ctrl key:
keyboard:usb:v*p*
KEYBOARD_KEY_700e2=leftctrl
This also works when I try to ...
1
vote
1answer
149 views
Changing systemd HandleLidSwitch setting during run-time?
The setting HandleLidSwitch is defined in /etc/systemd/logind.conf as follows:
HandleLidSwitch=<hibernate,ignore,...>
The setting is applied successfully on boot. However, I would like to ...
0
votes
1answer
69 views
Get a faster response for a ping
I noticed that the answer to my ping is slower in one debian machine that another.
For the first one when i ping to 8.8.8.8:
64 bytes from 8.8.8.8: icmp_req=1 ttl=47 time=29.6 ms
For the second ...
1
vote
0answers
153 views
Boot time discrepancy using systemd on Debian 7.4
I recently installed systemd on my Debian 7.4 system. The time from pressing the power button to usable desktop is around 42-44 seconds. The BIOS takes 6-7 seconds to load and transfer control to ...
0
votes
1answer
61 views
Change network values from sysctl.conf
Can I change the value of those parameters (spoofprotect, syncookies, dynaddr_hack, notimestamps, nobroadcasticmpecho, ip_forward) from sysctl.conf file in systemd?
1
vote
1answer
57 views
Change sysctl parameters for all interfaces
How can i change a parameter for all interfaces in systemd ?
For example:
sysctl -w "net.ipv4.conf.eth0.rp_filter=0"
sysctl -w "net.ipv4.conf.eth1.rp_filter=0"
How can change it for all ...
0
votes
1answer
253 views
systemd timer every 15 minutes
I'm trying to make a systemd timer that runs every 15 minutes. Right now I have:
[Unit]
Description=15min timer
[Timer]
OnBootSec=0min
OnCalendar=*:*:0,15,30,45
Unit=timer-fifteen.target
...
4
votes
0answers
101 views
Execute code on shutdown on Fedora 19
I need to catch any OS shut down and execute some actions before letting the OS be shutted down.
I'm using Fedora 19 and C++.
I'm able to catch a shutdown signal given by the console with the ...
6
votes
4answers
826 views
Systemd: cause a script to execute *after* networking has started?
I am relatively new to systemd and am learning its architecture.
Right now, I'm trying to figure out how to cause a custom shell script to run. This script needs to run after the networking layer has ...
0
votes
1answer
46 views
Forking in a systemd script
I want systemd service to handle forking (my file doesn't handle forking by itself. So I'm relying on systemd for handling that)
My .service file:
[Unit]
Description=swamp services management ...
9
votes
2answers
470 views
How can I find available network interfaces?
This is in regard to linux, but if anyone knows of a general *nix method that would be good.
I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
2
votes
1answer
215 views
Migrate socat init script to systemd
I use socat with following init script on debian 7.2 with sysVinit. It works perfectly:
#!/bin/bash
DESC=socat
DAEMON=/usr/bin/socat
LIB=/usr/lib/socat
SOCAT_ARGS="-d -d -lf /var/log/socat.log"
[ ! ...
2
votes
2answers
124 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. ...