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.
0
votes
1answer
23 views
Knowing the service that opens the port
I want to close unnecessary ports in debian 8.2.
$ nmap localhost | grep open
25/tcp open smtp
631/tcp open ipp
Searching the service that corresponds to smtp,
$ lsof -i:25
$ sudo systemctl ...
1
vote
1answer
18 views
systemctl not running scripts under system-sleep
systemctl hybrid-sleep or anything similar is, according to the manual, supposed to execute all scripts found in /lib/systemd/system-sleep and after that continue it's own execution.
Instead it ...
1
vote
0answers
17 views
How to run a command inside a running systemd container
I have a systemd container running, and I can login into it with machinectl login <container>. How can I execute a command inside the container directly, i.e. without first logging in, executing ...
1
vote
0answers
30 views
Multiple DHCP services on Debian Jessie (systemd)
Since I want to add an IPv6 DHCP server (using ISC's dhcpd) additionally to run parallel to my IPv4 DHCP server on my Debian Jessie (systemd) box another instance of dhcpd needs to be started but this ...
0
votes
0answers
21 views
How to delete gateway from default routing table use systemd
There are two physical interfaces on my machine, both with DHCP, so my default routing table looks like this:
Destination Gateway Genmask Flags Metric Ref Use Iface
default ...
2
votes
1answer
42 views
Where to find the logs of the services started by systemd at computer boot?
I am running a Debian unstable with systemd, at boot I have a few services which are marked as FAILED (and not OK), but the log is too fast for me to grab the name of the failed service.
I wonder if ...
2
votes
1answer
70 views
Systemd weirdness: Cannot add dependency, file exists
I have a Debian armel machine running wheezy, upgraded to Debian Testing today. As you can guess from the title, systemd is weird in two ways:
1) On boot, a swath of errors "Cannot add dependency X ...
0
votes
1answer
17 views
how to configure multiple interfaces with systemd-networkd
I have three physical network interfaces one my machine, they are all connected to different subnets, the first interface is eno1 with IP 10.10.24.157/24, the second one is eno2 with IP ...
2
votes
1answer
25 views
“askfirst” getty with systemd (“press enter to activate this console”)
On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting ...
2
votes
1answer
44 views
Run script every 15 minutes 9-4 using Systemd.timer
Is there a way to configure Systemd.timer so that it runs a script every 15 minutes Mon-Fri between 9AM and 4 PM.
This is what my timer file looks like
[Unit]
Description=Execute every 15 minutes ...
0
votes
0answers
44 views
Why is there a systemd related error when starting X server?
I've installed Arch Linux. After a system uprgade
pacman -Syu
I checked my /var/log/X11/Xorg.0.log and see the following:
[ 17.768] (EE) systemd-logind: failed to get session: PID 321 does not ...
0
votes
0answers
31 views
use systemd to run a script before shutdown or reboot
I want to run a few scripts for shutdown sound, logging network bandwidth usage.
Irrespective of script is there anyway to run a script on shutdown or reboot using systemd?
I am on Ubuntu 15.04
in ...
1
vote
0answers
28 views
Systemd unit file for daemon not working on boot
I am trying to make the transmission-daemon start on boot on my Raspberry Pi model B using systemd. I am at a point where I can stop and start the daemon using sysctl, but automatic startup on boot is ...
2
votes
0answers
29 views
Triggering Linux shutdown on power failure
I have an embedded Linux system (currently running Angstrom) with supercapacitor hardware to provide time for writes to complete and avoid corrupted filesystems when external power is removed. ...
4
votes
1answer
39 views
System does not poweroff - how to diagnose
After upgrading to debian jessie my dated desktop system no longer powers off reliably (/sbin/poweroff - via systemctl on tty1). Instead, it shuts down, pauses and reboots and only powers off if I ...
1
vote
1answer
39 views
Which processes are not needed for boot?
The xUbuntu boot takes 3m compared 1m30s Win 7 or SliTaz 20s (uncomparable) 2m Mac OS X (Hackintosh)
My Laptop has a Celeron 64bit CPU 4 gigs of RAM and a old Nvidia Card from late 2009
6400 RPM hard ...
0
votes
0answers
87 views
systemd says permission denied for /bin/sh
When systemd tries to start postfix, I see:
окт 11 15:19:28 fs.tld local[32063]: fatal: execl /bin/sh: Permission denied
I also can't start mysql and redis-server; everything else seems fine.
...
1
vote
0answers
16 views
Random packet loss with bonded interfaces?
I'm trying to setup a LACP bond using systemd-networkd on an arch server.
When I try to ping the gateway I seem to be getting intermittent package loss which lead me to believe the LACP isn't setup ...
0
votes
0answers
27 views
Power Button script runs only for the first time
I'm using Debian 8 and I'm booting my system with Linux 4.1.2 with systemd. I had a working script that does something and suspends the pc. After upgrades, the script was not working anymore. When I ...
1
vote
1answer
19 views
systemd timer OnUnitActiveSec vs OnCalendar for anacron replacement
I need to run oneshot bash script once a day (log rotation and cleaning). I saw some examples stated to use:
OnCalendar=daily
Persistent=true
and another examples using:
OnBootSec=20min
...
1
vote
2answers
86 views
RHEL 7 how run longtime script before shutdown/reboot systemd
I'm trying to found solution how run script before shutdown/reboot is initiated in RedHat7. I need to correctly shutdown SAP database when I'm shuting down or rebooting server.
Script for SAP ...
0
votes
1answer
59 views
How to start and stop a listener service together with a custom service
The problem I am trying to solve is to start and stop a listener service when a custom service is started or stopped.
The specific case is IBM MQ V8 on RHEL7 but the same principle should apply to ...
3
votes
1answer
67 views
Create wireless access point and share internet connection with nmcli
How can I create a Wi-Fi hotspot with command line tool nmcli and share the ethernet internet connection to the wireless access point? Furthermore how can I start this automatically at boot?
Is that ...
1
vote
1answer
33 views
Monitoring systemd service activation times
I'd like to be able to retrieve from systemd how much time the last activation of a oneshot service took. I thought about the following options, but they didn't manage to convince me completely :
...
3
votes
2answers
56 views
how does systemd determine service is stopped?
Our application uses an init.d script to start and stop the application as a service. Under CentOS 7, /sbin/init is symlinked to systemd, so I can start my application using either:
service myapp ...
1
vote
0answers
44 views
script can't write to systemd journal
to make it short: I want to write to the systemd journal from a script.
printf "%s\n%s\n%s\n" CODE_FILE=/etc/zsh/zprofile CODE_LINE=31 MESSAGE="could not read /etc/dircolors" | logger --journald
...
0
votes
1answer
43 views
how to configure systemd shutdown process
I see messages like these in my journal :
Sep 28 17:27:48 localhost kdeinit5[4476]: Qt: Session management error: networkIdsList argument is NULL
Sep 28 17:27:48 localhost kdeinit5[4476]: No DBUS ...
3
votes
2answers
60 views
Porting old sysvinit habits to systemd
I have a series of script with which I was able to install and configure newly Debian stable systems. To automatically start programs I use /etc/rc.local but for other cases I had to manually change ...
3
votes
2answers
139 views
How does systemd use /etc/init.d scripts?
I just switched to debian jessie, and most things run okay, including my graphical display manager wdm.
The thing is, I just don't understand how this works. Obviously my /etc/init.d/wdm script is ...
2
votes
0answers
26 views
Running a systemd service unit at next boot, but not subsequent boots
I have a script that I want to run during my next system boot, but not on subsequent boots. I want to use systemd to launch it, so I created a service file at /usr/lib/systemd/system/myscript.service:
...
0
votes
0answers
56 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 ...
11
votes
4answers
262 views
Is there a standard way to start and stop services on Linux?
Until recently there was a simple and effective way to start/stop/restart services:
service nginx start|stop|restart
This worked perfectly for so many years,... until some smart-pants decided to ...
1
vote
0answers
16 views
Fedora outputs junk to virtual ttys when I switch between them
On my Fedora 22 system, every time I switch between text terminals using Ctrl+Alt+Fx, the system outputs junk to the screen. It is usually something like:
[ 5385.916900] nouveau E [ ...
0
votes
1answer
38 views
How to write script for systemd using different scripts
New to systemd here - essentially I have 3 different scripts: activate.sh, toggle.sh, and deactivate.sh. I want to use a systemd service and timer in order to do the following:
When the service ...
1
vote
1answer
42 views
Run a udev rule for a USB flash drive when the computer is started with the device inserted
I want my Ubuntu 15.04 x64 server system to execute a script whenever a certain flash drive is inserted. So I created a custom rule file with the following content
...
5
votes
0answers
47 views
How do I view systemd logs from before a journal corruption?
I had a server issue today where CPU was pegged at 100%. I had to hard-reset the server in order to bring it back up, and now I'm trying to determine the cause of the high load.
Unfortunately ...
3
votes
1answer
45 views
Systemd is unmounting my /boot partition
My sda1 is mounted to /boot after booting, and I can manually mount it just fine. But something is automatically unmounting that partition, even after I've manually mounted it.
These are the current ...
0
votes
1answer
25 views
enable systemd service in non-default target like `chkconfig --level` did
In Centos 6 I used:
chkconfig --level 12345 network on
chkconfig --level 12345 sshd on
Now have Centos 7.1. Is it possible to additionally enable sshd in resque.target using some command line ...
2
votes
2answers
42 views
/usr/bin/mail call in ExecStart not sending any mail
I have the following service configured:
[Unit]
Description=SCollector
After=NetworkManager.service
[Service]
Type=simple
ExecStart=/bin/sh -c "/opt/scollector/scollector ...
1
vote
1answer
258 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
vote
1answer
19 views
CentOS - SSH - File That Change Iunput Setup
I use CentOS 7 and I need to change the file that delivers the SSH configuration /etc/ssh/sshd_config to /etc/ssh/sshd_config_other.
This demand was due to a security automation that always ...
8
votes
4answers
269 views
Is systemd “malicious”? [closed]
Visiting some forum online that discuss about Debian and Xubuntu, I saw some users that add this line in the signature field:
...With no systemd...
This line is showed with pride (it seems to ...
0
votes
0answers
37 views
How to boot gentoo with systemd, UEFI, lvm2 rootfs with systemd EFI boot?
I've installed Arch Linux with that setup. And now, I want to have dual
boot with gentoo. But, when booting gentoo, the root UUID (on LVM) not
detected. My partition scheme is like this: (lsblk -f)
...
2
votes
1answer
48 views
How to set Ethernet link speed & duplex
How can I configure my Ethernet (eth0) link speed and duplex on my systemd & connman based system?
I've previously used a script in /etc/network/if-up.d, in which I could make a call like:
...
1
vote
1answer
94 views
New CentOS install login broken
I've just finished installing CentOS on a fresh disk. I did it in a slightly unconventional mannner - by running a complete yum install in a chroot from Debian. So I had a few problems getting grub ...
1
vote
1answer
42 views
systemd: How to check scheduled time of a delayed shutdown?
I like to use shutdown -h TIME/+DELAY sometimes.
However, since the switch to systemd (on Ubuntu), things seem to have changed quite a bit.
Apart from the fact that a previous shutdown command no ...
8
votes
1answer
117 views
How to avoid /usr/bin/env being marked in systemd logs as the executable
I've created a systemd service to run a tomcat application based on the information found in this article. The short version of the article recommends avoiding the shell script wrappers, and executing ...
0
votes
1answer
195 views
LSB: Raise network interface hang
When starting a Debian Jessie iso in VMWare, I sometimes find the VM won't startup reporting:
A start job is running for LSB: Raise network interface
A timer then loops forever counting seconds ...
0
votes
2answers
62 views
journalctl: how to prevent text from truncating in terminal
How can I keep long strings from truncating in terminal? For example if I run
journalctl -xn
There's a lot of text that I cannot read. I am open to using other programs/tools.
2
votes
0answers
48 views
how to start a systemd service before networking starts?
I'm trying to set up a new service (under Debian Jessie) that needs to set up some mounts where the network configuration is stored and thus this service must complete before networking.service ...