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.
8
votes
3answers
4k 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]
...
1
vote
0answers
90 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 ...
0
votes
1answer
320 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 ...
60
votes
4answers
24k 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?
10
votes
1answer
19k 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?
2
votes
1answer
263 views
systemd - umount device after service which depends on it finishes
I'm trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this ...
7
votes
3answers
1k 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?
6
votes
1answer
1k 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 ...
6
votes
2answers
787 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 '^[^#]' ...
3
votes
1answer
148 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
0answers
18 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: ...
2
votes
1answer
1k 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 ...
