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.
39
votes
5answers
14k 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?
16
votes
1answer
492 views
How does systemd survive a kill -9?
Between the recent "Why does 'kill -9 0' end my console session" and "How to get a kernel panic" questions, I got a bur under my saddle and tried kill -9 1 on a mostly up-to-date Arch linux laptop. I ...
11
votes
3answers
283 views
Eject CD on shutdown
OK, so I have a simple problem: I have a live CD, and I want the CD to eject when the computer is rebooted or halted.
Executing /usr/bin/eject -m makes the CD eject just fine... trouble is, as you ...
10
votes
1answer
3k 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 ...
10
votes
1answer
259 views
Actkbd as service with systemd
A while ago I asked for how to stop a music player while the screen is locked. The answer was to use actkbd which works like a charm. Now I wanted to add actkbd as a service to systemd in order to ...
7
votes
5answers
2k views
Fedora 16 strange /tmp permissions: mysqld will not start
I installed mysql on a brand-new Fedora 16 server and it would not start. This is the line from the log file (^G and all):
^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibNPyIlu' (Errcode: ...
7
votes
2answers
3k 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 ...
7
votes
1answer
623 views
How to shutdown with consolekit without sysvinit (but with systemd)
I have systemd (and no sysvinit) installed on a Arch Linux box. However, I cannot shutdown/reboot with consolekit (dbus interface). # systemctl {shutdown,reboot} work just fine, so I guess it's ...
6
votes
1answer
5k 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?
6
votes
2answers
256 views
Arch Linux how to close tty
I've opened several ttys and I don't know what key combination to use to close a tty. I'm using Arch Linux.
6
votes
2answers
458 views
`systemd` messages after starting login
After boot-up process systemd starts agetty, but after 1--2 seconds additional messages are appeared:
How to avoid this?
I use Arch Linux, systemd 194.
$ grep '^[^#]' ...
5
votes
2answers
583 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?
5
votes
2answers
282 views
Why is a service being started if it isn't mentioned in /etc/init.d?
After a clean install of Fedora 17 and distcc-server, I did a service distccd start, which completed successfully.
man service indicates that it would merely be running the distccd script at ...
5
votes
1answer
105 views
Debugging lock-up - systemd loses my logs
Ever since I have "upgraded" to systemd on Arch Linux, I keep losing logs when an unexpected lockup happens. I hit the same log-losing issue one month ago and just hit the issue again. There are also ...
5
votes
3answers
2k views
How to run a script with systemd right before shutdown?
What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed?
[Unit]
Description=Log Traffic
[Service]
...
5
votes
2answers
931 views
Is there a way to speed up boot time by loading things into RAM immediately?
I'm looking to lower my boot time by whatever means possible. I have about 8GB of RAM in my laptop, and if there's any way I could leverage that into faster boot time, that'd be awesome. Is there a ...
5
votes
1answer
853 views
How do I disable udevd in systemd?
I'm trying to boot a Fedora Rawhide LXC container from a Fedora 16 host, and it's not working - systemd just keeps dropping into emergency mode. Because udevd doesn't work in LXC containers, I thought ...
5
votes
1answer
331 views
How does systemd-tmpfiles work?
I'm trying to change the value of /sys/bus/usb/devices/4-3/power/wakeup at every boot (4-3 according to my lsusb, it's the keyboard ID).
The default value is:
# cat ...
4
votes
1answer
594 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 ...
4
votes
3answers
6k views
How to mount NFS 3 volumes on Fedora 17?
I installed the package nfs-utils and tried it via:
# mount -t nfs server:/mnt /mnt
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep ...
4
votes
1answer
251 views
named does't start when using systemctl
I am having trouble getting named to start using systemd on the Fedora 18 Raspberry Pi spin. It starts, then a few moments later there is a timeout and it fails. If I run the commands in named.service ...
4
votes
1answer
146 views
MySQL server-id not being set with Fedora 16
I am setting up a mysql slave on a Fedora 16 system, and the server_id is not being set properly. My /etc/my.cnf is:
[mysqld]
server-id=16
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
...
3
votes
2answers
2k views
What's the status of Upstart on Debian?
I know that this question already got asked before, but it's pretty old and things have changed (probably).
Already in 2009 the news rumbled, that Debian was going to switch to Upstart. You were able ...
3
votes
2answers
366 views
How to write a systemd .service file running systemd-tmpfiles
I need to run systemd-tmpfiles --create during the boot process with a systemd distro. So I need to create a systemd .service file doing this job.
In this question you can read all the details about ...
3
votes
3answers
113 views
systemd service that needs .ssh/id_dsa password
I have a systemctl service that starts a process smd-loop in a screen session. This process requires acces to remote SSH sources (for syncing purposes) and thus needs to be able to access my id_dsa ...
3
votes
3answers
395 views
How can I set power button (on computer case) to power off system with `systemd`?
How can I set the power button (on my computer case, not keyboard) to power off the system with systemd (without acpid)?
3
votes
1answer
58 views
User systemd PulseAudio service
Not much else to this question: I would like to know what I need to create a PulseAudio systemd service to be run with systemd --user.
I've tried a few different things, including various user ...
3
votes
1answer
1k 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 ...
3
votes
1answer
179 views
dropboxd hangs at `Connecting…` when started trough systemd on boot
I've got a systemd service file dropbox.service set up as follows:
[Unit]
Description=dropbox
After=local-fs.target network.target
[Service]
User=romeovs
ExecStart=/usr/bin/dropboxd
[Install]
...
3
votes
1answer
42 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 ...
3
votes
0answers
277 views
Why is systemd-coredump storing the dump in memory itself?
I just noticed that most of my memory was hogged by coredump of a few processes that I had killed recently. I had a systemd-coredump process running for each crashed process (usually the processes ...
3
votes
0answers
312 views
What's the right way to execute a script before system shutdown (systemd)?
I wrote a script that suspend all my virtualbox machines, and put a line in /etc/rc.local.shutdown, but it doesn't seem to work,
su - XX -c /XX
When I'm booted next time, virtualbox tells me the ...
3
votes
0answers
66 views
Restricting D-Bus access to the logged-in user via ConsoleKit or systemd
I need to restrict the client of a D-Bus service to only the user logged into the system locally, via ConsoleKit or systemd. How must I configure or write the D-Bus service to do so?
3
votes
1answer
427 views
FUSE : Allow any user in the fuse group to unmount
I'm currently trying to write a couple of systemd/udev configuration files that will allow me to automount/unmount MTP Android devices on my Archlinux laptop. It took me some time, but so far it works ...
2
votes
1answer
649 views
Start systemd service after mysql
I am working on a project which is a mono EmailServer. I have tried adding a service to the systemd so that it starts up automatically during boot but I am having a problem.
I have created the ...
2
votes
2answers
466 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 ...
2
votes
1answer
585 views
How can I disable the X-server on Fedora 17?
I want to use a Fedora 17 "Beefy Miracle" system as a network-shared desktop for cooperative work. For this I'm using TigerVNC which brings its own X-Server and starts a completely separate desktop ...
2
votes
1answer
2k 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
1answer
758 views
Why do I have to restart NetworkManager.service all the time?
After switching to systemd, I started to use NetworkManager.service, I got connected to WIFI automatically at boot, but I got the following message when I run nmcli con:
** (process:4433): WARNING ...
2
votes
1answer
3k 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 ...
2
votes
2answers
217 views
How do I configure systemd to activate an encrypted swap file?
My previous question produced the commands to add an encrypted swap file:
# One-time setup:
fallocate -l 4G /root/swapfile.crypt
chmod 600 /root/swapfile.crypt
# On every boot:
loop=$(losetup -f)
...
2
votes
1answer
161 views
systemd failure on binfmt services
Systemd has several failed services, and I don't know how to work it out:
# systemctl --failed
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
proc-sys-fs-binfmt_misc.automount ...
2
votes
0answers
34 views
dhcpcd can't startup at boot
when I run dhcpcd after boot everything works fine but when I try to add it to auto start systemctl enable dhcpcd@eth0.service, after each boot it's inactive
dhcpcd@eth0.service loaded ...
2
votes
0answers
48 views
Moving /dev/shm/ to /run/shm in Arch?
Dolphin (The KDE4 FM) would not receive file change notifications for /dev/shm, but for /run/shm.
So now I would like to migrate /dev/shm/ to /run/shm, but I couldn't find the corresponding part in ...
2
votes
0answers
95 views
What is the correct way to write a udev rule to stop a service under systemd
I'm running Arch Linux, and I have a udev rule which starts a service when a device is inserted. In this case, it dials a connection when a 3G modem is plugged in.
KERNEL=="ttyUSB*", ...
2
votes
0answers
46 views
Run backup on HD plugged with systemd
When I plug a HD via USB, it should a) mount it b) run my backup
script.
What I currently have is backintime.service
[Unit]
Description="Runs backintime to backup."
[Service]
User=user
...
2
votes
1answer
130 views
systemd stuck on mounting an encrypted volume
systemd seems to stuck on mounting an encrypted volume, when I set the init to /usr/sbin/systemd in grub.cfg,
I have one line in /etc/crypttab
secure /dev/sda8 /etc/cb.key
That works with original ...
1
vote
1answer
167 views
How to start a 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 ...
1
vote
2answers
523 views
inittab equivalent in fedora 15?
I have just installed Fedora 15 on my laptop. I want to study /etc/inittab as I studied it in RedHat 9.
I don't see any script in /etc/inittab. Also , the way the default runlevel can be changed in ...
1
vote
2answers
175 views
Creating one-time cgroup
I would like to be able to create a one-time temporary group in hierarchy. For example:
#!/bin/sh
run_with_csubgroup /sys/fs/cgroup/group/subgroup/
Which creates group say ...
