systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelisation of service startup.

learn more… | top users | synonyms

1
vote
1answer
11 views

Motorola SB6141 assigns 192.168.100.0/24 IP via DHCP when cable dies; can I prohibit systemd-networkd from using 192.168.100.0/24 addresses?

I have a Motorola SB6141 cable modem connected to a Linux firewall that obtains an IP via systemd-networkd's DHCP function. Every so often, the ISP will have issues, and for some reason, ...
2
votes
0answers
7 views

Systemd Service Start With Dynamic Port Value From Docker

Using CoreOS, Docker and systemd to manage my services I want to properly perform service discovery. Since CoreOS utilizes etcd (distributed key-value) there is a very convenient way to do this. On ...
-1
votes
0answers
16 views

How do the basic concepts of an OpenRC script using start-stop-daemon translate to systemd and its unit files? [closed]

An example OpenRC definition (from Gentoo) for a very simple service (pfix-srsd) is shown below. It uses start-stop-daemon to control the lifecycle of the daemon. Rather than executable scripts, ...
1
vote
0answers
20 views

How to configure MySQL pid file permissions?

I know MySQLd will create a pid file as set up in mysqld.service: ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid However, it creates the file with a 660 permission, meaning ...
2
votes
1answer
48 views

systemd: get core dumps for service started by xinetd

I recently upgraded a system to openSUSE 13.1. We're running a custom-built service on the system through xinetd, and in the old xinetd init script had the line ulimit -c unlimited before starting ...
0
votes
1answer
20 views

How to set umask for php-fpm in fedora 19

I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
1
vote
0answers
29 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
2
votes
1answer
49 views

How can I log a message to the systemd journal from the command line?

Reading Where does logger log its messages to in Arch Linux?, it seems that syslog() messages and the 'logger' command line app only talk to the systemd journal if a socket for message forwarding is ...
1
vote
1answer
85 views

system suspend - dbus upower signals are not seen

I want to get notifications via dbus when the system resumes from suspended state. Following these existing questions: What DBus signal is sent on system suspend? How do I detect when my system ...
0
votes
0answers
11 views

How to use input variables within a systemd script? [duplicate]

I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command. However, when using this command I need to be ...
0
votes
0answers
33 views

Why is SystemMaxFileSize in journald.conf not being honoured?

I have the following settings in journald.conf SystemMaxUse=100M #SystemKeepFree= SystemMaxFileSize=10M According to the documentation, SystemMaxUse controls how much disk space the journal may use ...
0
votes
0answers
35 views

Starting MongoDB with SystemD by listening to a Socket

I'd like to run MongoDB on my development machine whenever the Port 27017 requested but not before that. I already got parts of the file /usr/lib/systemd/system/mongodb.socket but now I'm stuck what ...
5
votes
3answers
358 views

Correctly setting the hostname - Fedora 20 on Amazon EC2

Context I have a Fedora 20 cloud image running on Amazon EC2 (henceforth called the "instance"). And I have some uncertainty about persistently setting its hostname. Goal In this case, let's say I ...
1
vote
0answers
38 views

How to list all units in systemd regardless of their state including parameterized / templated (@)?

OpenVPN unit file is parameterized (see @): > ls /usr/lib/systemd/system/openvpn* /usr/lib/systemd/system/openvpn@.service The problem is that I cannot list the parameterized service names by ...
0
votes
0answers
166 views

Starting nginx with systemctl fails, but running the command manually doesn't

On Arch Linux, for some reason, when I try to start nginx with the command "systemctl start nginx", it fails, with this being the output of "systemctl status nginx": Loaded: loaded ...
0
votes
0answers
111 views

How to combine output of several journals by journalctl?

I need to see all postgresql logs. I try: $ journalctl -f -u postgresql.service SYSLOG_IDENTIFIER=postgres -- Logs begin at Ср 2013-03-06 00:57:40 KRAT. -- авг 11 23:41:07 nuzzflonk postgres[2432]: ...
1
vote
1answer
86 views

systemd: stop all uninstalled units

I have some systemd units installed and running. Let's say I manually uninstall foo.service by removing its .service (and .socket) files removing all symlinks (e.g from default.target.wants/) I ...
2
votes
1answer
269 views

systemd to wait for command to complete before restart/shutdown or killing other processes

When I'm initiating "reboot" or "poweroff", systemd is killing all the processes, but I need it to wait for one particular application to finish before stopping other services. Actually, I want ...
3
votes
1answer
61 views

How do you automate enabling a service on a debian filesystem without booting into it?

I want to have a custom service that I've placed into /lib/systemd/system start at boot, but th eonly way I know how at the moment is to run systemctl enable myservice.service but I would like to ...
1
vote
1answer
161 views

How do I lock down nginx on debian wheezy (running systemd)?

The systemd unit file that comes with the nginx-common package runs the master process as root, which makes me nervous. I assume the only reason it runs as root is to bind port 80, but being root is ...
1
vote
1answer
83 views

Setting up rails rake task as a service in systemd

So I am trying to set up some application background processes to start on boot using systemd. It always gives me 127 exit code and I am not sure why. I thought that ExecStart command is being ...
1
vote
1answer
536 views

systemd httpd stop very slow under Arch Linux

When I perform a: systemctl stop httpd Apache often takes minutes to stop. The command: apachectl gracefully-stop always stops immediately. Anyone have any idea what might be causing this? The ...
1
vote
4answers
301 views

httpd: how to dynamically delay request forwarding to proxy?

I have Apache httpd (2.2.22) configured as reverse proxy. There is a situation in which I need to take my web server (the receiver of the proxied requests) offline for a few milliseconds. During this ...
1
vote
1answer
235 views

Cannot start the Net-SNMP daemon from systemd (but it works from the command-line)

When I start Net-SNMP from systemd, there is no error message but the daemon does not run: % sudo systemctl start snmpd % When I start it from the command line, it runs: % sudo /usr/sbin/snmpd ...
0
votes
3answers
138 views

systemd ExecStartPost doesn't look to be called

I used the following config to start beanstalkd process [Service] ExecStart=/usr/local/bin/beanstalkd ExecStartPost=pgrep beanstalkd > /var/run/beanstalkd.pid The last line is supposed to ...
0
votes
1answer
1k views

Systemd dependencies and boot order

I need to specify a boot order for processes to start. I have 389 Directory Server and Samba running on Fedora 18. How can I have the network services boot, then 389 DS, then Samba? Is there a GUI to ...
1
vote
2answers
574 views

How can systemd run a command as root before launching a service as a different user? [closed]

I'm running svnserve on a Fedora 17 machine with the following systemd service file: [Unit] Description=Subversion Server After=syslog.target network.target [Service] User=svn Type=forking ...
1
vote
1answer
346 views

service file for golang app

So I wrote a golang app which I want initialized by systemd whenever my server gets a reboot. Here's the service file:- [Unit] Description=golang wiki initialization [Service] Type=forking ...
3
votes
3answers
1k views

Running systemd based container in LXC

I'm currently trying to run an Arch Linux container using LXC on an Ubuntu 12.04 host. Arch Linux has recently migrated to systemd, which according to a variety of places has some problems operating ...
0
votes
0answers
243 views

Systemd under LXC does not believe network device exists

I am running Arch Linux under LXC. I have a systemd unit file for dhcpcd (a DHCP client) that includes: BindsTo=sys-subsystem-net-devices-eth0.device And indeed, eth0 exists and is functioning: # ...
2
votes
1answer
2k views

How to store php sessions using memcached and unix socket

I am running Arch linux with systemd, nginx, and php with php-fpm. I am trying (and failing) to configure memcached to store sessions using a unix socket. I have memcached installed and active, ...
1
vote
1answer
345 views

Make systemd user service depend on system target

I have a user service in ~/.config/systemd/user/example.service like so: [Unit] Description=Example service After=network.target [Service] ExecStart=/bin/bash -c 'host google.com > ...
0
votes
1answer
75 views

systemd initiated uwsgi process shuts down after a while

So I wrote this simple systemd service script:- [Unit] Description=uwsgi server script [Service] User=web Group=web WorkingDirectory=/var/www/prod/myproject/releases/current ExecStart=/bin/bash -c ...
-2
votes
1answer
99 views

failed to iterate through journal: bad message [closed]

I received the following error trying to view logs on an embedded ARM board running Angstrom Linux with systemd. # journalctl -f Failed to iterate through journal: Bad message I searched the ...
0
votes
1answer
1k views

httpd not starting with systemd on F17

Title says it all. This is a fresh Fedora 17 system running on a Xen hypervisor. No idea why it won't start [root@box~]  uname -a Linux box.localhost 3.5.4-2.fc17.i686.PAE #1 SMP Wed Sep 26 22:10:23 ...
3
votes
0answers
1k views

Delaying NIS & NFS startup till after network interface is fully ready on Fedora 17

I've recently set up a fedora 17 server for our network, and I've been having trouble getting the NIS service to work on startup. Here's some logs from the system: Aug 21 12:57:12 cairnwell ...
1
vote
2answers
207 views

Running Python Script at boot as a particular user

I want to run a python script at boot as a particular user. The script is a server (listens on a socket, serves requests, etc) and should be run in the background, with any output preferably piped to ...
11
votes
3answers
4k views

How to set environment variable in systemd service?

I have an Arch Linux system with systemd and I've created my own service. The configuration service at /etc/systemd/system/myservice.service looks like this: [Unit] Description=My Daemon [Service] ...
1
vote
1answer
1k views

placing shell script under systemd control

Assuming I have a shell script like this:- #!/bin/sh # cherrypy_server.sh PROCESSES=10 THREADS=1 # threads per process BASE_PORT=3035 # the first port used # you need to make the PIDFILE dir and ...
3
votes
1answer
2k views

How to create systemd.service in Fedora 16 (x86_64)?

I have big problem with creating service in new way - by systemctl (systemd.service) in Fedora 16. I wonna to create very simple service for minidlna server. I have created new file called ...
0
votes
1answer
179 views

Is there a way to control two instantiated systemd services as a single unit?

I've got a couple python web services I'm trying to run on a Fedora 15 box. They're being run by paster, and the only difference in starting them is the config file they read. This seems like a good ...