The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
6answers
18k views

systemctl enable differs from systemctl start, how?

I am running an Arch Linux (latest, up-to-date) box, and attempting to get MySQL to start at boot. With the systemd package installed I have systemctl available, and as such I can do things like this: ...
10
votes
1answer
13k views

How do I setup a systemd service to be started by a non root user as a user daemon?

I just finished the install and setup process of systemd on my arch-linux system (2012.09.07). I uninstalled initscripts (and removed the configuration files). What I want to do is create a service ...
7
votes
2answers
4k views

How do you make a systemd service as the last service on boot?

Many years ago, we can write our startup-script into /etc/rc.local. After all system services loaded, your script will run. Now, we use systemd, we don't have rc.local anymore. Systemd starts the ...
6
votes
1answer
646 views

How to automount ntfs partation on raid0 in arch linux with systemd

Recently, I switched from initscript to systemd followed this wiki, and I got error like this during boot: Job dev-md126p5.device/start timed out This is my fstab: /dev/mapper/VGLinux-lvroot / ...
5
votes
1answer
1k views

Systemd can't start script?

I have a BASH-script I want to run on start up. My system is running systemd so I created a .service file with whith what I think is the neccessary information: [Unit] Description=My Script ...
4
votes
2answers
1k 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 ...
4
votes
1answer
7k views

Arch Linux - Cannot start CUPS service with systemd

In order to get printing working in Arch Linux, I installed cups, cups-filters, and hplilp (ghostscript and gs-fonts were already installed). However, when I try and make the CUPS service run on ...
4
votes
1answer
65 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 ...
3
votes
3answers
4k views

How to start python program at boot on Arch Linux ARM?

I am running Arch Linux ARM on my Raspberry Pi, and I need to start a python (which should keep running until it either crashes or the machine loses power) program at boot with no input at all from ...
3
votes
1answer
2k views

The @ symbol and systemctl and vsftpd

I have a two part question. What is the significance of the @ symbol in systemctl scripts? How to start vsftpd in fedora 16, (which in some tutorials seems to contain an @ in it's name)? I ...
3
votes
1answer
685 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 ...
2
votes
1answer
3k views

How to remove systemd services

If I install a new service then decide I don’t want that application anymore and delete it, the service is still listed in the output from systemctl as error. Where is this coming from and how can I ...
2
votes
1answer
209 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 ...
2
votes
2answers
3k 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 ...
2
votes
1answer
557 views

Start celery daemon via systemd

In the /usr/lib/systemd/system/celery.service: [Unit] Description=Celery Nodes Daemon After=network.target [Service] Type=forking PIDFile=/var/run/celery/main.pid ExecStart=/usr/bin/python2 ...
2
votes
1answer
46 views

How to write a systemd service that depends on a device being present?

I would like to write a systemd service that depends on USB WiFi dongle being present. It doesn't need to start when device is plugged in as long as it doesn't start when device is not plugged in. How ...
2
votes
1answer
403 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 ...
2
votes
1answer
409 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] ...
2
votes
1answer
437 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 ...
2
votes
1answer
211 views

How to stop a group of systemd custom services

I wrote three service units, say a.service b.service and c.service. C requires and runs after b, b requires and runs after a, so when I execute "systemctl start c.service", all three of them will be ...
1
vote
3answers
9k views

How can I run a command after boot?

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
1answer
268 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?
1
vote
1answer
1k views

Bluetooth doesn't work in Fedora 15 when system wakes up or changes runlevel

I'm experiencing weird problem when using Bluetooth on Fedora 15. First, to get Bluetooth working, I had to follow this post. Now, when I boot up and login (runlevel 5, GNOME 3), systemctl status ...
1
vote
1answer
110 views

Debian not reboot or shutdown

I'm truck with a simple problem of rebooting with my installation of Debian 7. I got inspire by this issue but it's not working. I tried a lot of combinations but still nothing. I'm not sure about ...
1
vote
1answer
261 views

which systemd units are failing? [closed]

Running systemctl status tells me that a systemd unit has failed. The output looks like this: ● the.host.name State: degraded Jobs: 0 queued Failed: 1 units ... How can I find out ...
1
vote
1answer
318 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 ...
1
vote
1answer
114 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): ...
1
vote
1answer
695 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?
1
vote
2answers
801 views

At what point are cgroups initialized for systemd?

So to cut a long story short, I am trying to get systemd working with an Arch install, but without running systemd from init. This means I am booting into a system that is not running systemd, then ...
1
vote
1answer
600 views

Httpd error: not accessible symlink with -D FOREGROUND

I'm trying to setup virtual host in Fedora18. Configuration is following: httpd version is 2.4 user/group - apache/apache global document root is /var/www/html vhost symlink: ...
1
vote
1answer
2k views

Run script at shutdown/reboot with systemd

I would like to run a script file when the system is called for shutdown/ reboot from 'reboot' and 'shutdown' commands. And if possible, also hard shutdowns like 'init 0' or 'poweroff'. How would I go ...
1
vote
1answer
414 views

A systemd script for s3ql remote FUSE mounting

I find systemd very exciting, but how would I use it to write a script to mount an s3ql filesystem? For example, the s3ql developer provides an upstart config that does the job. Specifically, on ...
1
vote
1answer
1k views

Mandriva Linux fails to boot after installing systemd

I have a Mandriva Linux system that was upgraded in-place using urpmi from version 2010.0 to 2010.1 and then 2011.0. I did run into a few minor issues, but nothing I couldn't handle. A few weeks ...
1
vote
1answer
1k 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. ...
1
vote
1answer
166 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
180 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 ...
1
vote
0answers
56 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 ...
1
vote
2answers
513 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. ...
1
vote
1answer
278 views

I have a SysV init script on Fedora 18. How can I make it start after the network is ready?

I have a SysV init script on Fedora 18. Fedora 18 uses systemd (and apparently, there is no way to switch back to SysV). My script requires the network to be ready. <edit> That is, I must ...
1
vote
0answers
2k views

How do you boot Arch Linux with systemd without X11?

Ran an upgrade recently that borked my whole setup(with catalyst drivers). It caused artifacts at login/desktop and then a hard lock. However, I'm not asking about those problems, what I want to ...
0
votes
2answers
170 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 ...
0
votes
2answers
2k 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
52 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
221 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
685 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 ...
0
votes
1answer
728 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 ...
0
votes
1answer
540 views

How can I replicate `fortune > /etc/motd` with systemd/tmpfiles.d?

None of the action types described in tmpfiles.d(5) seems to allow for running a command as part of creating a temporary file. It is possible to write an argument to a file, for example with action ...
0
votes
2answers
657 views

Configuring systemd to allow daemon to set RT priority

I have a daemon that calls pthread_setschedparam() to set the thread priority. On a system using systemd (OpenSuse 12.1), this fails, because sched_setscheduler() returns EPERM. From what I ...
0
votes
0answers
9 views

Can't automount USB stick with Fedora 21+systemd-udev, could with Gentoo on same machine

In Gentoo I had created a small script that was called by udev and allowed me to mount an USB device, identified by its serial number, to any mount point I chose. Basically, ...