Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [systemd]

systemd is a collection of daemons, libraries and tools for system management. Ubuntu's Upstart system was replaced with systemd starting with Ubuntu 15.04.

0
votes
2answers
49 views

Can we write pid into a file which store in systemd?

I have a script to start java application on boot time. [Unit] Description=test Background [Service] ExecStart=/bin/bash -c "/usr/bin/java -jar /var/www/tset.com/*.jar" Type=simple WorkingDirectory=...
0
votes
0answers
38 views

Systemd broken after upgrade 18.04 -> 18.10

I tried to upgrade from 18.04 to 18.10 but the upgrade failed half way because of unmet dependencies. It's specifically: python3-apt, apt-xapian-index, python3-newt:amd64, systemd, python3-gdbm:amd64, ...
2
votes
0answers
49 views

How do I execute a command on system start in Ubuntu 18.04? [duplicate]

According to linuxaudio.org, I should add the command echo 3072 >/sys/class/rtc/rtc0/max_user_freq to my startup scripts. In previous versions, I've done this by adding the line to the file /etc/...
1
vote
1answer
32 views

Remote Desktop via xrdp: Missing items in Applications menu and indicator applet

I followed Griffon's guide to install xrdp on Ubuntu 18.04 (http://c-nergy.be/blog/?p=12761) but modified /etc/xrdp/startwm.sh to use it with gnome-flashback-metacity: #test -x /etc/X11/Xsession &...
0
votes
0answers
9 views

Java and Ubuntu 18.04 not setting working directory correctly

I am currently trying to get a Java service working using Systemd process on Ubuntu 18.04 (upgrading from 14.04). One thing I have noticed is when the UsePerfData flag is enabled (which I believe it ...
2
votes
1answer
41 views

Is there a way to use wild cards, redirection or other shell syntax with systemd units?

I have a systemd file to start a jar file. But I want to execute jar file as *.jar. Is there a way to do this? [Unit] Description=Test Background [Service] ExecStart=/usr/bin/java -jar /var/www/...
0
votes
1answer
20 views

No network connection after suspend\resume

My case - Ubuntu 18.10, 64 bit, Realtek r8169 ethernet adapter. I had no problem with it until i edited connection name in connection manager from netplan-enp3s0 to something more understandable. ...
0
votes
0answers
23 views

'systemctl suspend' seems to hang and doesn't execute script in system-sleep

I have some trouble with suspending ubuntu 18.10. 'systemctl suspend' seems to hang waiting for the network and not reaches a state where executables in '/lib/systemd/system-sleep' are called. I try ...
0
votes
1answer
56 views

Run a script on boot

I have a script to start a java application automatically. # colors red='\e[0;31m' green='\e[0;32m' yellow='\e[0;33m' reset='\e[0m' echoRed() { echo -e "${red}$1${reset}"; } echoGreen() { echo -e "$...
0
votes
1answer
27 views

ubuntu 18.04.1 LTS postgres systemd service

I am installing Postgres 11 on Ubuntu 18.04. When you do a non-default install: First install postgresql-common. Adapt the config file to NOT create main cluster , start_conf= 'auto' and ...
1
vote
1answer
31 views

How can I clear the PREROUTING rules in my iptables?

Long ago I created some prerouting rules in my iptables. I have a script in ~/myuser/Downlaods, owned by root #!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-...
0
votes
0answers
41 views

Using systemctl on Ubuntu 14.04

I have an Ubuntu 14.04.5 LTS on the server and I'm trying to write OpenVPN server and I want to start a process using systemctl e.g.: systemctl start openvpn@[server] but got Failed to get D-Bus ...
-1
votes
0answers
42 views

Does Lubuntu differ from Ubuntu in which virtual console is text and which is GUI? [duplicate]

From https://unix.stackexchange.com/questions/485152/is-dev-tty7-not-directly-accessible-to-ubuntu-users#comment889406_485152 Since 17.10 (?) tty1 is a login screen, tty2 is the desktop GUI and 3-...
1
vote
1answer
23 views

How do I change the order in which systemd services are started up

Ubuntu 18.04 server on my home network I'm running: dnsmasq for DHCP and DNS nginx as a reverse proxy to some web applications (running on localhost and on other hosts) The nginx reverse proxy ...
0
votes
0answers
37 views

systemd won't start service

I am trying to start a jupyter notebook service using systemd with the following service unit file in Ubuntu 18.04 LTS: [Unit] Description=Jupyter [Service] Type=simple PIDFile=/run/jupyter.pid ...
0
votes
1answer
50 views

Using /etc/environment.d/*.conf to set global environment for all users

Is /etc/environment.d/*.conf a valid place to put environment config on Ubuntu 18.04 for all users? I've tried a file with the following contents: BRAD_TEST=true However, after logging in and ...
0
votes
0answers
204 views

18.04 - how to create PID file in systemd unit?

I am trying to properly setup my minecraft server with systemd so that it correctly determines the main PID for the process. I have the following systemd service unit: [Unit] Description=Minecraft ...
0
votes
1answer
28 views

Run Incron Daemon as Normal User Rather Than as Root

I need to run incrond to respond to a FUSE directory that is mounted without the allow_root option. That means I have to run it as my own user. When I install incron as default under systemd and ...
0
votes
0answers
26 views

Systemd cant find my 'start.sh' file?

so i am trying to get a minecraft server running as a service of systemd my minecraft.service has this content: [Unit] Description=Minecraft Server After=network.target [Service] WorkingDirectory=/...
1
vote
1answer
81 views

Change DNS Server given during Ubuntu 18.04 installation

During Ubuntu Server 18.04 installation, I provided the wrong DNS server, say 192.168.0.1. I now want to change it to a different server, say 8.8.8.8, but cannot find the correct spot to do this. I ...
1
vote
3answers
485 views

systemd-tmpfiles won't start

After last update there is become a problem: systemd-tmpfiles not starts (so there is no temp dirs and some services can't be started). root@myserver:/# journalctl -b 0 -u systemd-tmpfiles-setup....
1
vote
0answers
64 views

18.04.1 LTS systemd-network not applying [RoutingPolicyRule]

I have a server instance with two interfaces, and I have created a rule to ensure traffic that comes in ens160 goes out ens160 despite matching the default route for ens192. The routes and rules work ...
0
votes
0answers
18 views

Start docker daemon only if a filesystem is mounted

I have an Ubuntu 18.04 server that runs different docker micro-services. These services use volumes, and the volumes are mapped to an external drive in the host (this question can be extended to a ...
1
vote
1answer
78 views

Ubuntu 18.04.1 does not boot without ethernet cable

This is my /etc/network/interfaces: # ifupdown has been replaced by netplan(5) on this system. See # /etc/netplan for current configuration. # To re-enable ifupdown on this system, you can run: # ...
2
votes
2answers
291 views

What is the use of systemd-journal-flush.service?

It slows my system boot time. Can i disable it? What will happen if i disable it on boot? I am using Ubuntu version 18.04.
0
votes
1answer
46 views

machinectl not importing diskimage

I was playing with systemd-nspawn. So I created a qcow2 disk image of 2 GB and Installed minimal Debian using debootstrap. Then I tried to import it using machinectl but it fails every time giving ...
1
vote
1answer
67 views

How to setup a systemd service with root access?

Description I am trying to make a systemd service file to run a python script to print something using thermal printer. escpos is the library I am using to access the control of thermal printer. ...
1
vote
0answers
22 views

Diagnosing a service not starting on reboot (Calibre eBook)

I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue. /var/log/error.log Nov 16 04:01:31 Ubuntu ...
0
votes
0answers
33 views

Diagnosing a service not starting on reboot (plexmediaserver)

I'm trying to figure out why a couple of my services aren't starting up at reboot. Once the system is up and running, I can run the service without issue. /var/log/error.log Nov 16 04:01:33 Ubuntu ...
0
votes
2answers
79 views

Systemd runs start and stop commands simultaneously on Ubuntu 18.04 - Minecraft server issues

Update: Still having this issue. I notice that my systemd service is running both ExecStart and ExecStop commands sequentially when I run "systemctl start minecraft.service". I have verified this ...
2
votes
0answers
66 views

system printing service not available ubuntu 18.10

I have a problem with the system printing service: My usb printer used to work just fine, and then I tried to a setup print-server - the whole system hanged up, and after reboot, no matter what I do, ...
0
votes
1answer
67 views

Updated 16.04 server to 18.04.1, now I see weird errors about missing files, failing to resolve dns, failing to connect to bus

Ok, so this is an upgrade from 16.04.1 LTS to 18.04.1 LTS, the server is headless. After the upgrade is finished, and a reboot is completed, the following happens: Trying to upgrade packages only ...
1
vote
0answers
28 views

Why systemd wont support IOWriteIOPSMax?

I just installed Ubuntu 16.04.5 LTS and upgraded the kernel to 4.15.0-38-generic using the package linux-image-generic-hwe-16.04. The problem is that when I try to start a service unit that uses the ...
0
votes
0answers
53 views

NVidia + Ubuntu 18:04: org.freedesktop.systemd1 failed during graphical login

Running Ubuntu LTS 18:04 with nvidia, was working fine. Recently did an apt-get upgrade, and now am no longer able to log in to my desktop. Lightdm starts fine, with both monitors supported, but when ...
0
votes
0answers
223 views

update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults

I have recently installed snmpd on my Ubuntu 16.04 VM. I was trying out few things and at some point I wanted to restart the application using service snmpd restart It did not work, giving the ...
0
votes
1answer
71 views

systemd-sysv-generator: stat() failed on /etc/init.d/screen-cleanup, ignoring: No such file or directory

I got a virtual 18.04.1 (acting as apt-cacher-ng host) installation which shows the following repeating warning in it's syslog. systemd-sysv-generator: stat() failed on /etc/init.d/screen-cleanup, ...
3
votes
1answer
151 views

systemd user service not found after reboot

I set up syncthing as a systemd user service on a 16.04 computer. Worked fine. Since I upgraded to 18.04 the service disappears upon reboot. After rebooting, I see: $ systemctl --user status ...
0
votes
1answer
63 views

Strange CPU usage behaviour with systemd, sleep, initctl or gvfsd processes owned by user

I have noticed in my 'indicator-multiload' application that my CPU usage some time after booting is raised permanently at about 50 to 100 percent. After running 'top' I can see a process owned by the ...
1
vote
1answer
74 views

Change PostgreSQL PGDATA variable with systemctl

I want to change the postgres' data directory to /home/postgres/data editing th postgresql.service instead of change the file /etc/postgresql/10/main/postgresql.conf. So, I edited the service with ...
0
votes
0answers
27 views

Acer Nitro 5 with Ubuntu 16.4 root partition mounting (dev-sda6.device) and systemd-udevd.service streching boot time

Its been over two months I've had the laptop and I believe I have followed mostly everything over forums to troubleshoot slow boot. In my office I work on a desktop(running ubuntu 16.04) that has ...
1
vote
1answer
226 views

Ubuntu 18.04 Slow Boot Time

Why is it taking so long for Ubuntu budgie 18.10 to boot on my netbook ASUS X201EP with a HDD. No dual boot, only Ubuntu is installed on the netbook. Ubuntu upgraded from 18.04, no fresh install. Boot ...
1
vote
0answers
38 views

upstart to systemd ubuntu16 - how to convert?

I have script from Ubuntu 14 working with upstart , how to convert it to systemd so it will work on Ubuntu 16 ? The file: start on runlevel [2345] and (started tty1 or started ttyS0 or started ...
2
votes
2answers
126 views

lsyncd enabled service is not autostarting on PC restart - Active: inactive (dead)

I have super simplified the question by merging all the previous edits lsyncd config file /etc/lsyncd/lsyncd.conf.lua settings { logfile = "/media/blueray/WDRed/_LsyncLog/lsyncd.log", ...
0
votes
0answers
46 views

How do I enable mysql as a service on 16.04?

I hoped the below would work: sudo systemctl enable mysql mysql.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable mysql But this ...
3
votes
1answer
176 views

Systemd error after upgrading from 18.04 to 18.10

After upgrading from 18.04 to 18.10 i got the following error: systemd[1]: segfault at ffffffffffffffc0 ip 00007fe716b80184 sp 00007ffcc7f9cf88 error 5 in libc-2.28.so[7fe716af5000+171000] I reboot ...
1
vote
1answer
68 views

Getting libsystemd.so.0 for Ubuntu 14.04

I am trying to install Dragonfly on Ubuntu 14.04. After working out several other issues with the installation, I am now dealing with the problem that I need to get libsystemd.so.0. Based both on the ...
1
vote
0answers
20 views

restarting a systemd user service from within cron

I have a user test. test has a systemd user service, located at /home/test/.config/systemd/user/testserv.service The service file contains, [Unit] Description=Test Service After=network.target [...
3
votes
1answer
97 views

How do I properly install a systemd timer and service?

I am attempting to create and install on Bionic a custom pair of systemd timer & service units for running a command periodically. I know that the files should be placed in /etc/systemd/system ...
0
votes
0answers
29 views

Running Jupyter notebook as a service with correct user, but path is not complete [duplicate]

I've installed and configured a Jupyter-notebook webserver, and setup a service in /etc/systemd/system/: jupyer-notebook.service ----------------------- [Unit] Description=Jupyter Workplace [...
0
votes
0answers
23 views

upstart equivalent of systemd-sysv-generator

systemd-sysv-generator automatically converts /etc/init.d scripts to systemd units. Is there an analogous approach that converts upstart job descriptions ? If not, is there some detailed manual on ...