The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
5answers
13k 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: ...
6
votes
1answer
469 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
9k 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 ...
5
votes
2answers
2k 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 ...
3
votes
1answer
4k 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 ...
3
votes
1answer
795 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 ...
2
votes
1answer
41 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
108 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
155 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
146 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
1answer
144 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
3answers
3k 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
2k 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 ...
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
29 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
111 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
295 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
375 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 ...
1
vote
1answer
392 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
339 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
0answers
13 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
0answers
34 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
107 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
220 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
1k 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
116 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?
0
votes
2answers
60 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
375 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
2answers
536 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 ...
0
votes
1answer
186 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
118 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
273 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
989 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 ...
0
votes
1answer
407 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
429 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
1answer
24 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
20 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 ...
0
votes
0answers
6 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 ...
0
votes
0answers
25 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 ...
0
votes
2answers
20 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
77 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 ...
0
votes
0answers
36 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 ...
0
votes
1answer
90 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
0answers
89 views

Bluetooth radio draining battery even if powered off

I'm using Arch Linux and SystemD. With Powertop I've discovered that my Bluetooth Radio drains a LOT of battery even if I disabled it on the BIOS AND with RFKILL. Furthermore, I've discovered that if ...
0
votes
2answers
335 views

permanent powertop changes with systemctl

I have got a .sh-script, trying to make powertop changes permanent. 'auto' > '/sys/bus/pci/devices/0000:00:02.1/power/control'; the commands in this .sh-script are all of this type. I have a ...
0
votes
0answers
137 views

Overhead associated with systemd using Arch linux on a Raspberry Pi

Having problems with a custom process that I start at boot time using systemd. I am using the Arch Linux distro built for the RPi. There is nothing special about the service I'm starting. Its a ...
0
votes
1answer
159 views

Writing a systemd timer for Prey

I'm trying to write a systemd timer to run Prey. I wrote: prey.service: [Unit] Description=Open source anti-theft solution for laptops, phones & tablets. [Service] ...
0
votes
0answers
259 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 / ...