The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
5 views

Can a Type=notify systemd service exit gracefully if WatchdogSec is set?

I have a service registered to systemd with WatchdogSec=10, Type=notify, Restart=no and a specific OnFailure action. My problem: whenever I trigger a graceful exit (by some internal logic dependant on ...
0
votes
0answers
8 views

Start user systemd service once logged in and network up

I have a Gentoo system running KDE as a desktop. This is installed on SSD and using systemd and so it generally happens that the system boots and I login quicker than DHCP can do its thing and get an ...
0
votes
0answers
7 views

Adding Xvfb to systemd services

I have attempted to create a new Xvfb service on a headless data server, but it shuts down the display after some time. I can confirm that the service is enabled. I am not doing anything related to ...
0
votes
1answer
12 views

how to show feedback when using systemctl

When restarting services using init scripts, you can get a visual feedback (success or fail). When I use "systemctl restart ..." I don't get to see any feedback. Is there a way to show whether a ...
0
votes
1answer
27 views

which systemd units are failing?

systemctl status tells me: ● the.host.name State: degraded Jobs: 0 queued Failed: 1 units ... But there doesn't seem to be anything in the output to indicate which units failed. How do ...
1
vote
0answers
17 views

systemd: ignore accidental power button pressses

On my laptop (Acer C720P) the power button is a regular keyboard key that I accidentally press all the time. This shuts down my computer instantly. Following somebody's advice, I disabled the power ...
0
votes
0answers
36 views

Running a script that starts other applications using systemd service

Our C++ Qt application runs graphically without X by specifying the -qws switch. Because of that, I uninstalled and disabled the graphical environment on the BeagleBone Black. Now, when I power on the ...
0
votes
1answer
42 views

Init 3 command with systemd

I am using Oracle Linux 7 for test purposes. I understand that the entire RHEL family (RHEL, CentOS, and OL) is using systemd now. As far as I know with systemd instead of init 3 I should use ...
0
votes
1answer
505 views

CentOS 7 hangs after update on Workstation 10 after “[sda] Assume drive cache: write through” line

I recently updated my CentOS 7 VM and it won't pass the following line: [sda] Assume drive cache: write through I tried changing the run level to 3 and run xfs_repair but it still doesn't boot. ...
0
votes
0answers
37 views

Why is logind.conf not working?

A few months ago I asked the following question about being able to suspend my computer without needing to unlock it. How to suspend from lockscreen in Gnome 3? The only way I could get my ...
0
votes
1answer
40 views

Fedora 20 Systemd slideshow on startup

How do I use systemd to automatically run a slideshow automatically at startup? I am using Gnome on Fedora 20. eog works well, but I cannot get it to successfully run at startup.
0
votes
0answers
60 views

Fancontrol service starts but exits

I start the fancontrol service but it doesn't do its job (control fans). # service fancontrol start [ ok ] Starting fancontrol (via systemctl): fancontrol.service. # service fancontrol status ...
0
votes
1answer
800 views

Fedora 20 start script on startup

I am trying to start a slideshow automatically on startup in Fedora 20. I started with a simple script. eog is "eye on gnome" which is a slideshow viewer and my pictures are in the ...
0
votes
0answers
56 views

Is it better to use the systemd service unit's Restart & RestartSec, or use a systemd timer unit?

I have a couple of in-house automated scripts running at periodic intervals. One is every five minutes, the other is every minute. They don't really need to be ran on-the-dot; e.g. I don't care if ...
0
votes
0answers
6 views

KDE Pause session restore until network

I recently re-installed Gentoo and KDE on SSD. Now it boots up faast. KDE does a session restore at boot, along with auto-starting any apps that I have setup. It turns out that I can boot to a ...
0
votes
0answers
42 views

systemd: Start some services only when at home (based on WLAN SSID)

I would like to have some network daemons like sshd or NFS only running on my laptop when I’m in my home network for security reasons. Is there a way to automate this with systemd and e.g. ...
1
vote
1answer
207 views

add multiple static ip addresses to a server with systemd-networkd

We have a server with multiple IP adresses. Lately we migrated to systemd and we still need mutliple IPs on that server. With systemd-networkd we have some trouble finding a configuration example. so ...
0
votes
0answers
197 views

systemd to lock screen on suspend as X session owner?

I have recently moved to using systemd to manage power control. In order to get my screen to be locked when returning from suspend, I created /etc/systemd/system/i3lock.service with these contents ...
0
votes
0answers
17 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
295 views

Systemd-networkd: How can I prepend a static nameserver entry to DHCP-discovered nameservers?

I'm using systemd 213 on Arch Linux, and systemd-networkd/resolved with DHCP to connect to the internet. I'm also running a caching DNS server on 127.0.0.1. I'd like to make this server the first DNS ...
4
votes
2answers
877 views

Why does systemd hang during reboot?

1 of 10 times, systemd hangs during reboot. I don't understand the reason. What/where should I look at to fix the problem? I am using systemd v196 and cannot upgrade it to version >=198 because the ...
0
votes
1answer
147 views

Using systemd to start gpg-agent?

I've read up a little on systemd, but still can't quite figure out how to use it to automatically start gpg-agent on login. I gather I'd use systemctl --user, but constructing the gpg-agent.service ...
2
votes
1answer
142 views

Writing a service that depends on Xorg

I'm trying to write a user level service for redshift, and it needs to wait until Xorg is up and running. My current service file looks like this: [Unit] Description=Redshift After=graphical.target ...
0
votes
0answers
43 views

Decrease browser load time by increasing priority of unbound DNS in systemd

I believe to decrease the launch time of browsers after boot/starting the X servers increasing the priority unbound processes would help. I believe editing the unbound.service file would do this but ...
1
vote
1answer
130 views

systemd: starting service that depends on sockets does not work

I'm using systemd to start a WiFi and power monitor service script that scans for an SSID, brings up the network and an SSH tunnel and does a few other tasks. Much to my surpise it doesn't always ...
1
vote
1answer
116 views

systemd: change default runlevel

I found two ways to change the default runlevel in systemd: https://wiki.archlinux.org/index.php/systemd#Change_default_target_to_boot_into # systemctl enable multi-user.target ...
0
votes
0answers
26 views

Arch Linux on USB key updates screw the pooch

I have had this issue twice now and at the moment I can't ask the question on the asrch forums because I can't be authenticated. Every time I update a crucial system component my system becomes ...
1
vote
1answer
97 views

Autostart gtk application with systemd

I am writing a small daemon which logs the active window name. The relevant part goes like: import wnck import gtk from plugins import IReporter class ActiveWindowNameReporter(IReporter): ...
3
votes
1answer
397 views

systemd - Giving my service multiple arguments

is it possible to give my systemd service more than one argument? I'd like to execute a program with multiple arguments which have to be decided by the final user. E.g: ./program arg1 arg2 To start ...
0
votes
0answers
19 views

systemd - Making an .automount service execute something

Is it possible to make an .automount service start a bash script or something similar? I need this since I need to bind folders on an external HD whenever it is plugged in. I searched through the man ...
-1
votes
1answer
64 views

multiple processes named 'systemd' running simultaneously (w/ one pid 1)

I have multiple processes named systemd running simultaneously on my Arch Linux machine. At least one of them is PID 1. Is this normal?
0
votes
2answers
134 views

No usable keyboard after upgrade to systemd-210

I'm using Arch Linux and I've just updated to systemd-210 since it added the support for the keyboard backlight sav/restore my Macbook Air needed. After having done the update, though, my keyboard is ...
2
votes
1answer
335 views

systemd-networkd does not enslave interfaces on bond

I have installed systemd-210 on a server and i want to create a bond for 4 interfaces. Therefore i created a 'catch-all' .network file: /etc/systemd/networkd/10.all-interfaces-to-bond0: [Match] ...
0
votes
0answers
81 views

How to change limits of non-interactive process?

I am trying to change the RTPRIO limit of a process that's run at startup. I have found 3 ways to change process interactively: setrlimit ulimit /etc/security/limits.conf However these only seem ...
1
vote
1answer
580 views

How to use systemd hybrid-sleep instead of suspend under gnome in linux?

How can I make GNOME 3 use Systemd hybrid-sleep instead of suspend when closing the lid or using suspend from the menu?
0
votes
2answers
38 views

Using cron vs. system managed service for frequent tasks

If some task should run in an frequent but not neccessary precise manner, what would the benefits of using cron vs. just using a service (eg. managed by upstart) with a loop script like #!/bin/sh ...
0
votes
0answers
216 views

How to get systemd “socket” unit to automatically restart? specifically dropbear.socket

On my BeagleBone Black Angstrom system, the dropbear.socket UNIT seems to spontaneously die after a while. The effect is that I can not ssh into the machine without restarting the dropbear.socket ...
1
vote
0answers
52 views

how to reload nginx - systemctl or nginx -s?

Is there a difference between calling systemctl reload nginx and calling nginx -s reload ? I know that, besides systemd, there are other init systems like SysV and Upstart. So maybe this ...
0
votes
0answers
193 views

How to know which file or inode triggered a systemd.path unit?

Systemd offers unit files whom control monitoring of a certain path trough inotify: systemd.path(5). If a file or directory is modified in the watched path the corresponding systemd.service(5) is ...
-1
votes
1answer
2k views

How to run bash script as root on startup?

I am having some problems with this, I have a script that is supposed to start airodump-ng on boot but it usually only runs the first part of the script and thats it. I have tried creating a systemd ...
0
votes
2answers
1k views

Arch Linux Install Cannot Enable dhcpd

I am trying to setup internet with arch linux. I just installed it using parallels and got the following error: [root@singularity ~]# systemctl enable dhcpd.service Failed to issue method call: No ...
0
votes
1answer
789 views

systemd service will start manually, but not at boot?

I've written a systemd service to start groundcontrol on my Raspberry Pi. [Unit] Description=Groundcontrol status monitor [Service] ExecStart=/opt/groundcontrol/groundcontrol/start.sh Type=forking ...
1
vote
1answer
236 views

Running a command at startup

How would I go about running a command at startup in ArchLinux using Systemd like rc.local in Sysv?
2
votes
1answer
347 views

Using systemd to execute an interactive (whiptail) script after multi-user.target but before the login screen

I am trying to run a small interactive configuration script from systemd on Fedora 19. It has to be run as root, and run prior to the user logging in. I have created a service which looks a bit like ...
0
votes
1answer
265 views

Systemd - Suspend to disk (hibernate) with suspended filesystems/block devices

Situation: 1) I am using systemd to suspend to disk using: systemctl hibernate 2) I have mounted a filesystem on an encrypted block device, that I suspend using dmsetup suspend device in order to ...
0
votes
1answer
535 views

Can systemd detect and kill hung processes?

While working on a solution which uses file locking, I believe my code is getting into a deadlock. I'm using systemd to kick off the process on system startup. Using alarm(3) is an option, but I was ...
2
votes
2answers
2k views

Start a systemd service inside chroot

With init scripts (or with openrc) I alway could run services from a different installation root. but when I run chroot /somepath/to_root /usr/bin/systemctl start someservice I got: Running in ...
1
vote
2answers
5k views

How can I run a command after boot? [duplicate]

I would like to run the simple shell command echo 1 > /proc/sys/kernel/sysrq at each boot, to enable the sysrq keys. When in boot should this be done, and where should I put a script to do it?
1
vote
2answers
415 views

How to debug old initd script under systemd?

I have an older initd script to start my application. It worked fine under older versions of SuSE, but fails on Open SuSE 12.3. The strange thing is cd /etc/init.d ; ./script start works fine. ...
0
votes
1answer
644 views

Prevent fsck on every boot

I'm analyzing boot times with systemd-analyze and, after optimizing it as far as I could, I noticed fsck-ing every partition on boot sometimes take up to 20 seconds. I feel it's unnecessary since I ...