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.
4
votes
0answers
27 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 ...
8
votes
2answers
307 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 ...
1
vote
1answer
31 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"
[ ! ...
5
votes
4answers
102 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 ...
3
votes
1answer
42 views
rsyslog not logging
This is an odd issue.
I was testing the chrony/ntp services on a RHEL7 VM and was resetting its time as well as the host's. Once I was satisfied with it I checked /var/log/messages and realized it ...
1
vote
1answer
13 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 ...
1
vote
1answer
17 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. ...
0
votes
0answers
23 views
Unit couchdb.service failed to load: No such file or directory
I have couchdb on Sabayon running
# couchdb -version
getopt: invalid option -- 'v'
Try `couchdb -h' for more information.
kernel-poll not supported; "K" parameter ignored
Apache CouchDB 1.5.0 ...
1
vote
0answers
23 views
linux watchdog and systemd watchdog
I'm in trouble with watchdog :(
Is there any way to register application into systemd watchdog at runtime?
Does linux watchdog only use for system reset or it can be use for application reset?
1
vote
1answer
315 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
364 views
How do I get systemd to start my ZFS mount script before doing anything else?
Right now I'm using zfsonlinux on Fedora 19, and it works excellently. Mounting works at bootup as planned using the initscript (included with zfs) that systemd calls, but there's a pretty significant ...
1
vote
0answers
27 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
...
2
votes
2answers
2k views
Network naming on Arch Linux
I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type:
ifconfig wlan0 up
I have as a result:
wlan0: ERROR while getting ...
3
votes
0answers
53 views
How to start to use httpd with socket activation (systemd)?
The apache httpd server is seldom needed on one of our small servers, so it would be nice to start it via socket activation by systemd (and later stopped it when no traffic occurred for some time). Is ...
2
votes
2answers
130 views
Can't boot system with systemd version above 208
I recently upgraded systemd from version 208 to 212 (also tried any other version between these two numbers)
And the system can't boot anymore. Looks like it cannot mount /tmp, but in emergency shell ...
0
votes
1answer
80 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 ...
2
votes
0answers
22 views
How to find what thing make a cycle in systemd [duplicate]
when boot with systemd, my system display this message:
systemd[1]: Found ordering cycle on basic.target/start
systemd[1]: Walked on cycle path to sysinit.target/start
systemd[1]: Walked on cycle ...
9
votes
2answers
716 views
Receiving Syslog messages with a systemd Arch Linux
I'm feeling like I've overlooked the obvious, but I can't figure out how to get my Arch Linux server, which uses systemd, to receive and log syslog messages from a remote system.
I have a Cisco 678 ...
3
votes
0answers
62 views
Graceful shutdown in ArchLinux
I'm trying to get a graceful shutdown/reboot in ArchLinux with GNOME Shell. Now, when I ask for shut-down, it immediately shuts down without giving open programs time to gracefully close / save open ...
2
votes
1answer
60 views
Check `fsck` automatically
I need to run fsck so that it automatically fixes problems (i.e., fsck -y). And because I am using "systemd" instead of "init" in the linux system, I cannot modify the /etc/default/rcS.
So what ...
0
votes
1answer
2k views
OpenSuse 12.3 keeps renaming network interfaces?
After installing OpenSuse 12.3 (x64) on a server box with a single (onboard) NIC (assigned to eth0), all works fine so far (static IP, static route, no "Network Manager" - just the good old way).
...
0
votes
0answers
54 views
death_handler: Fatal signal 15 received
I have problem with my Linux when I try to shut it down.
init 0
I get the following error:
death_handler: Fatal signal 15 received
setsockopt recvref[30]: Protocol not available
The sytem will ...
3
votes
1answer
118 views
Where is / why is there no log for normal user systemd services?
I'm trying to learn basic systemd usage and I've run into a confusing issue with user service units.
When running ordinary services with systemctl start some.service I can find the full log for this ...
1
vote
1answer
75 views
Convenient way to check if system is using systemd or sysvinit in BASH? [duplicate]
I am defining common bash files which I want to use across different distributions. I need a way to check if system is using systemd or sysvinit (/etc/init.d/). I need this so I run appropriate ...
1
vote
1answer
20 views
How can I translate these OpenVPN client configuration instructions to work with Fedora 20?
Here's the link to the full instructions.
When I get to step 9, under the heading "9. Setup Client Config Files", it says:
Now we will configure the openVPN to
work as client. Remember that we ...
3
votes
1answer
224 views
How to create rootfs for user mode Linux on Fedora 18?
I want to create a rootfs to be used with an UML kernel and be able to use the internet. I was using febootstrap with packages: bash, coreutils, net-tools, iputils. After using ...
3
votes
1answer
63 views
Arch does not mount btrfs array on boot
As data partition I have a multi-disk btrfs filesystem. My root disk is ext4
Fstab:
UUID=290624c6-6b95-41fd-94a1-923ebca64b83 / ext4 rw,relatime,data=ordered 0 1
/dev/sdc ...
3
votes
1answer
15 views
Is there a way to make sure only one [email protected] instance is running resp. gets started
I would like to use one .service file for starting a service from varying directories but it would be nice if there was a way to automatically stop any running instance with a different instance name ...
1
vote
1answer
43 views
Starting NetworkManager before gdm.service with systemd
In arch linux I would like to have NetworkManager service available at gdm login page.
I enabled the two services like this:
systemctl enable gdm.service
systemctl enable NetworkManager
The issue ...
10
votes
1answer
15k 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?
3
votes
2answers
3k views
Setting console font in vconsole.conf does not work (systemd)
I am trying to set a different default console font for my new Arch Linux installation (using systemd).
I set up my vconsole.conf in /etc as so:
KEYMAP=us
FONT=Lat2-Terminus16
I rebooted and saw ...
1
vote
1answer
73 views
80-net-setup-link no longer functions when I downgraded systemd
I've downgraded systemd to version 208. Although I still have /etc/udev/rules.d/80-net-setup-link.rules on my disk, but the names of network interfaces were not named correctly:
e.g wlp3s0 is not ...
0
votes
1answer
26 views
How do I resume booting process after sulogin procedure
I upgraded Arch Linux today and systemd stopped booting again. So I logged in with sulogin, mounted the drive.
How do I resume the booting process? Like in old days, init 3 somethings like that.
1
vote
2answers
84 views
Writing own daemon. systemd error: Failed to read PID from file: Invalid argument
I'm trying to write own daemon a la very simple MPD (it's operating systems laboratory work). I made it work: it starts like a daemon (output of ps):
1 14877 14877 14877 ? -1 Ss 0 ...
2
votes
1answer
63 views
PID file /var/run/named/named.pid not readable (yet?) after start
Feb 24 15:54:34 ns1 named[20308]: all zones loaded
Feb 24 15:54:34 ns1 named[20308]: running
Feb 24 15:54:34 ns1 systemd[1]: PID file /var/run/named/named.pid not readable (yet?) after start.
Feb 24 ...
1
vote
1answer
49 views
journalctl process groups
I recently tried setting up the ChrootDirectory property in sshd_config and ran into the ownership problems for chroot targets.
After i have fixed the problem i noticed that syslog-ng had created log ...
2
votes
0answers
52 views
How to use systemd hybrid-sleep instead of suspend under GNOME in Linux? [closed]
How can I make GNOME 3 use systemd hybrid-sleep instead of suspend, when closing the lid or using suspend from the menu?
14
votes
2answers
6k 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
74 views
Systemd boot time trimming
I just switched to systemd on debian sid and while it's a big step forward it also makes it easy to see opportunities for improvement
Boot from suspend takes too long
$ systemd-analyze blame | head ...
6
votes
2answers
304 views
How to replace sysvinit with systemd in debian?
I've been using systemd for a while in my Debian installation, just that to make it possible I had to add a boot parameter to the /etc/default/grub file to make it work, which is added to Ubuntu boot ...
5
votes
0answers
75 views
Why are cgroups mapped differently on these two systems by systemd
I have two systems, both running customized variants of OpenSuSE 12.2 (Mantis), both running exactly the same kernel. I get two very different outputs of /proc/self/cgroup or /proc/$$/cgroup on the ...
0
votes
1answer
41 views
Target filesystem doesn't have requested /lib/systemd/systemd
I have been using systemd for about a month without any problems on my Debian Jessie. I installed it according to the Debian wiki. But all of a sudden today I got this error:
...
18
votes
1answer
615 views
What sets systemd apart from other init systems?
It is not quite official but it looks like systemd is coming to Debian and after reading some of the heated mailing list discussion on that decision, I am curious about the polarizing nature of ...
1
vote
0answers
47 views
Suggestions to debug missing kernel messages from systemd journal
I have recently been playing around with a new freescale i.mx6 system. I have installed archlinuxarm on it.
Strangely, all kernel messages are missing from the journal.
$ sudo journalctl -k
-- ...
4
votes
1answer
299 views
How can I start Apache on Arch Linux w/systemd using passphrase protected SSL keys?
I'm relatively new to using Arch Linux and think I must be missing the obvious way to do this correctly, but –short of starting the daemon on my own– I can't figure out how to get passphrase protected ...
1
vote
0answers
89 views
How to determine which init system is used? [duplicate]
Is there a way to determine which init system is being used in Linux? (such as sysvinit, upstart, systemd, etc.) I don't care if it can be programmatically determined, I just want to know how I can ...
6
votes
3answers
2k views
Trouble with dbus and systemd/user
I have systemd set up so that using systemctl start user@me will start my user services as I expect, but my dbus one just won't go (which I need for PulseAudio).
Is there some way I can check dbus or ...
12
votes
4answers
5k views
Writing basic systemd service files
I am developing a Nodejs application that the user interacts with via HTTP on localhost. There are practically no parameters and the daemon has virtually no dependencies and it just needs to be up by ...
2
votes
2answers
283 views
Log every command typed in any shell: output (from logger function to syslog-ng/journald) contains duplicate entries for commands?
I installed syslog-ng to use on my desktop (Gentoo 64bit, upgraded to systemd i.e. was OpenRC before, with Openbox and Slim only) with my normal user to log all commands I type in the shell (bash ...
1
vote
2answers
970 views
how to setup virtual box guest additions (drivers) on systemd system (exherbo)
The trouble is when I run ./VBoxLinuxA... I'm getting:
Unable to determine your Linux distribution
so there is build in script :
check_system_type() {
if [ ! "$ro_SYS_TYPE" = "" ]; then
...




