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.

learn more… | top users | synonyms

0
votes
1answer
12 views

Limit the number of mod_mono_server4 process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot timee?

How do I limit the number of mod_mono_service process instances to match the number of Apache server processes started up at Ubuntu 16.04 reboot time? The way to specify the number of Apache server ...
2
votes
0answers
9 views

Limiting users ram with cgroups not working (for me)

I registred because I didn't manage running cgroups with several tutorials/comments/whatever you find on google. I want to limit the amount of ram a specifix user may use. Internet says "cgroups". My ...
0
votes
1answer
37 views

How to start multiple mod-mono-server4 Linux process domains at reboot time?

I would like to know how to serve multiple ASP.NET applications on multiple mod-mono-server4 Linux process domains. I am running Ubuntu 16.04 on a Lenovo ThinkStation desktop. Here is how I plan to ...
2
votes
1answer
67 views

Universal way to logout from terminal via dbus

I'm new with dbus, and saw different ways to log out from terminal depending on desktop env. But I'm curious is there any way to log out from any desktop env using dbus messages? On GNOME: dbus-send ...
0
votes
2answers
56 views

How to start up k=10 Apache2 server processes upon Ubuntu 16.04 alpha release reboot?

I would like to know how to start up k=10 Apache2 server processes upon Ubuntu 16.04 alpha release reboot. Yesterday, I read this URL, [https://rudd-o.com/linux-and-free-software/tuning-an-apache-...
3
votes
1answer
28 views

Ignore sshd inhibitors when rebooting

On my home PC, I set up sshd as an SFTP server so I could share files with my friends. However, when I attempt to reboot and someone has an SFTP client connected, I get the following message: $ ...
1
vote
1answer
28 views

kick off a systemd service just before shutdown

I am developing a systemd shutdown script (unit file) for a postgresql database and I followed the below two posts but could not get it to work. How to run a script with systemd right before shutdown?...
0
votes
0answers
14 views

Laptop reboots instead of resuming from systemd suspend when on battery power (suspending on AC power works)

After some updates to the kernel, my laptop doesn't resume anymore if it's not connected to a power source. If I plug in the AC and then suspend, it will resume. I thought that this was related to ...
4
votes
2answers
43 views

How to fix unit attribution of last lines of systemd logging before exit?

I have a systemd service which logs to stdout. From there, systemd captures STDOUT and writes it to the journal. I use a common idiom for handling an error where I echo some diagnostics, then exit ...
0
votes
0answers
14 views

systemd-networkd fails to start when network booting via pxelinux

I created a systemd link file to enforce persistent network interface naming for a stack of network-booted hosts. Because the MAC varies between machines, I have to use the PCI path for matching the ...
0
votes
1answer
30 views

Configuring simple service with systemd

We are using Bamboo server for continues integration with remote agents which are building our projects. These agent can be started up with a simple shell script (which works fine). But I thought I ...
0
votes
0answers
4 views

How to make VirtualBox related services manually started in Fedora 23?

Fedora 23 boots up too slowly, so I check it by using systemd-analyze blame, and this is the output: 1min 22.379s plymouth-quit-wait.service 17.100s firewalld.service 10.799s akmods.service ...
1
vote
0answers
24 views

Systemd linked unit files on mounted disk fail to load

We have an internal application with systemd services that we want to deploy outside of the normal systemd directories (/etc/systemd/system and /usr/lib/systemd/system). That location is on another ...
1
vote
1answer
22 views

apache and systemctl status

We use SUSE Linux Enterprise in our company. We now have got our first SLES 12 machine (this is the first version in SLES that systemd is used). I found a link where somebody says that "start", "...
3
votes
0answers
23 views

Laptop sleeps by itself - in logs “Sleep requested” - requested by what?

I left my Linux laptop on with the lid open while it was on battery power for several minutes, and it went to "sleep" (according to the systemd journal) - I assume this means the same as hibernation? ...
1
vote
0answers
23 views

Failed to get D-Bus connection: unknown error -1

Running OSMC on my Raspberry Pi 2b. I set up a samba share a few days ago, there is nothing else I've done for the last few weeks with the Pi besides running a few daemons. It's running 24/7. Now ...
2
votes
0answers
27 views

Restrict /proc/mounts to avoid exposure of /run/user/

EDIT: Currently looking at this solution.. (namespaces), but still wouldn't mind any pointers for doing what I'm after another way. We have a custom SELinux policy on CentOS 7.2 which confines users ...
1
vote
0answers
53 views

Interrupted apt upgrade broke udev and systemd

During an update of my Raspbian installation (Pi rev. B+) over SSH I lost connection. After a hard reboot (which may have happened during or after finishing the update) the udev kernel device manager ...
2
votes
1answer
44 views

kernel init without 'root=' parameter

From systemd/fstab-generator.c it follows that systemd treats root= as required kernel parameter, the only configuration source for /sysroot mount. However from kernel/init/main.c and kernel/init/...
2
votes
2answers
47 views

Systemd Restart=always is not honored

I'm using systemd to keep a worker script working at all times: [Unit] Description=My worker After=mysqld.service [Service] Type=simple Restart=always ExecStart=/path/to/script [Install] WantedBy=...
2
votes
2answers
39 views

systemd: lie about process name using sh -c exec idiom

I'm using the sh -c exec idiom in an ExecStart statement (in a service unit file) to interpolate some shell commands. For example: ExecStart=/bin/sh -ec "exec /usr/bin/foo $(/usr/bin/foo-config)" ...
3
votes
0answers
63 views

How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4?

How do I define an Ubuntu Linux16.04 systemd service for fastcgi-mono-server4 or xsp4? I have already defined an Ubuntu Linux16.04 systemd service for apache2 by copying obex.service to apache2....
0
votes
0answers
20 views

Systemd, start user level unit with sudo access.

I have a debian package which installs my software and it needs to start two applications in post install script. First one is daemon and the second one is a background process both are managed with ...
0
votes
0answers
27 views

Error building LiveCD for LFS

I've build an LFS with systemd recently and went to make a liveCD for it using this hint I've previously built an LFS with sysvinit and used that hint which worked perfectly. But this time I got a ...
4
votes
2answers
51 views

Explanation of file - org.freedesktop.login1.policy

I am using Ubuntu 16.04. There is a file located at /usr/share/polkit-1/actions/org.freedesktop.login1.policy which seems to control the permissions regarding shutdown/suspend/hibernate options. ...
2
votes
3answers
36 views

Why is a link removed when disabling a service? (a file is not)

I want to install my own service by dropping a .service file in /etc/systemd/system. My source .service file is in /opt/something.service. I have two choices when installing: cp /opt/something....
1
vote
1answer
44 views

How to use SystemD to run a game server 24/7?

I'm relatively new to Linux (CentOS 7.2). I'm trying to get my Hurtworld servers to run from systemd so I can use that nice restart=always feature. However to get multiple HW servers running, I ...
1
vote
0answers
29 views

Sync mail with offlineimap via systemd service/timer; getting password from gnome keyring

I am trying to autosync my mail in mutt using offlineimap via a systemd service. I am using these files and have moved them to the /etc/systemd/user folder. However, I am storing my password via the ...
1
vote
0answers
14 views

How do I apply a `.link` setting?

I've set a wireless.link file in my /etc/systemd/network directory, according to the guide in man systemd.link. Is there a way to apply those settings without rebooting the system? According to the ...
2
votes
1answer
72 views
+50

Login not chdir()ing to correct home directory (AD/realmd/sssd)

I'm forced (ugh) to join several linux machines to a domain. I'm currently using debian stable, and am joining the machines using a join script I wrote (at https://rbmj.github.io/join.sh for ...
0
votes
1answer
29 views

Have SystemD spawn N processes?

At my organization, we have a number of queue consuming worker processes. We're currently using SupervisorD to manage them, but would like to use SystemD if possible for certain advantages therein. I'...
1
vote
0answers
37 views

Fedora 21 - no Network Online ever happened

I have some custom service, which is relies on network-online.target NetworkManager removed. chkconfing network on replaces it. Service have In journalctl -b I don't see network-online happen (as ...
0
votes
1answer
39 views

How can I see previous logs with systemd?

I have a user unit running, that is currently failing. I want to know when it started failed, so I'm checking its logs with journalctl --user -u pycardsyncer.service However, this is only giving me ...
0
votes
1answer
20 views

How do I make journalctl messages show up in red?

Some error messages in journalctl show up in red and white. If I'm authoring my own systemd service, how can I format my messages such that they show up in red or white. It's a nice way of having ...
0
votes
1answer
27 views

Systemd Service for Offlineimap + gpg encrypted PW's inside tmux works manually after system start but not autmoatically

Short description, what i'm searching for: I want to have a detached tmux session automatically started as a systemd user service. Inside that, offlineimap should start and decrypt my login ...
5
votes
1answer
45 views

Making environment variables available for downstream processes started within an init.d script

This questions stems from @FrustratedWithFormsDesigner comment. How do I make export environment variables set within an init.d script available to downstream processes started within that same init....
1
vote
1answer
33 views

how can I schedule a custom script to run whenever I restart a service

I wish to know how can I schedule a custom script to run whenever I restart a service. My use case is that I have to run several commands whenever I restart my Tomcat Service. I want to know if there ...
2
votes
1answer
51 views

How to run gunicorn as systemd daemon

I use arch linux , I try to prepare gunicorn daemon to connect to nginx. But still I get errors ● gunicorn_yogavidya.service - Yogavidya gunicorn daemon Loaded: loaded (/usr/lib/systemd/system/...
2
votes
1answer
37 views

How to run a script (when usb memory is plugged) automatically in Debian Jessie (Raspberry Pi)?

I'm working with Raspberry Pi. Previously, I used udev rule to run a script when a usb flash memory was plugged. The following was the content of /etc/udev/rules.d/10-usbstick.rules file: ACTION=="...
1
vote
0answers
72 views

How to hide boot messages (silent boot) in debian jessie (raspberry pi)?

I'm working with raspberry pi. Previously (debian wheezy), I used the following codes to hide boot messages and have a silent boot, until a code (playing omxplayer on loop) would run from /etc/rc....
4
votes
1answer
62 views

Can I use systemd to start and stop a service based on the presence of a file?

My config thus far is: foo.path [Path] PathExists=/tmp/foo.path [Install] WantedBy=multi.user.target foo.service [Unit] Description=Matt Test BindsTo=foo.path [Service] ExecStart=/bin/sh /...
3
votes
3answers
66 views

Shutdown procedure clarification

The book "How Linux Works" says the general shutdown procedure (independent of init system) is something like this: init asks every process to shut down cleanly. If a process doesn’t respond after a ...
0
votes
0answers
50 views

CentOS 7.2 Minimal Time synchronization timedated and/or ntpd/chrony

Environment: KVM CentOS 7.2 Minimal installation. I am trying to sync the time with an NTP server in my network. My Proxmox-Host (Debian based) is able to do this by enabling systemd-...
4
votes
1answer
47 views

Mac randomisation with systemd?

Is it possible to randomise the mac address with systemd itself? I have heard that it is possible in newer versions of systemd. This is my systemd version: systemd --version systemd 229 +PAM +AUDIT +...
0
votes
1answer
27 views

Systemd pause boot while script runs

I have a script that I want to run at boot, and whilst it runs I would like it to pause the boot process. I have tried the systemd service [Unit] Description=setup script Before=default.target [...
2
votes
1answer
48 views

Systemd Python service not sending all output to syslog

I have a custom service and have explicitly called for all stdout & stderr to be sent to syslog in the config file, however only some of the output appears in both syslog and the journal (they are ...
1
vote
2answers
49 views

systemctl .service file not working as expected

I am working with the service files in Centos 7 and am creating one for xymon. The issue I am running into is I am trying to configure start, stop, and restart. I went as far as using an existing ...
1
vote
1answer
48 views

Files system become suddently read only; how to debug this?

My ext-4 root and home filesystem became suddently read-only. How can I find out what was the reason for this? The system is ubuntu 16.04 with systemd (installed on an ssd), where root and home ...
1
vote
0answers
19 views

Systemd and controlling network settings

I'm trying to figure out best way to control network settings in best way possible in real time. My current plan is this: Start ip -s -d -o monitor with systemd and write its output to file ...
0
votes
0answers
23 views

creating pid under /var/run with dnscryypt

I have installed dnscrypt. It works but I had to create the pid with root in /var/run. I tried at first creating the PID dnscrypt as user nobody but got permission denied every time. The code below ...