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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [systemctl]

The tag has no usage guidance.

0
votes
0answers
18 views

How to get hand on a service terminal

So I have Minecraft server running as a service on a ubuntu 18.04 server. I would like to input something to this service, more precisely, I would like my terminal to focus on this service just like ...
2
votes
1answer
115 views

setting environment variables from command line inside unit files

I am trying to set a date inside the unit file for logging my unit file look like this: [Unit] Description=Jetty service After=multiuser.target [Service] Environment=MAIN_CLASS="com.candorgrc....
0
votes
0answers
53 views

NRPE Service Fails to Restart on Redhat

Whenever I try to restart/start my nrpe service on client machine, the following error shows up: Failed at step EXEC spawning /usr/lib/systemd/system/nrpe.service: Exec format error Can anyone ...
0
votes
1answer
60 views

Can't start Minecraft server in tmux with systemctl

I'm trying to automate my Minecraft server because having to manually wrangle tmux sessions gets really old after a while. Here's the systemd service file I wrote to help me with that: [Unit] ...
0
votes
0answers
92 views

Cannot run an app (e.g. rclone) successfully as a service

I'm trying to run the rclone-mount from the terminal it works fine, but it isn't working as a service (obviously I want to autostart it so I don't have to type mount everytime I restart). Terminal (...
0
votes
1answer
15 views

CentOS won't boot when disk is removed

In my system I have a boot drive (xfs) and a RAID (ext4). The RAID is /dev/sda so I have added that in fstab to auto-mount at startup. /dev/sda /mnt/RAID ext4 defaults 0 0 Today ...
0
votes
1answer
113 views

systemctl set-property user-1009.slice CPUQuota=50% Failed to set unit properties on user-1009.slice: Unit user-1009.slice is not loaded

I'm trying to set per-user limits on processes, most of them are run with sudo --user. Why do user-1001 and user-1008 on my system have the slice files, but I can't get it on 1009? # systemctl set-...
0
votes
0answers
116 views

SLES 12 Service start and stop order doesnt work

my system runs on suse enterprise 12 sp2. I have two services sapinit and sapcontrol. At startup the service sapinit has to be started before the sapcontrol service can start and at shutdown or stop ...
0
votes
0answers
23 views

Create another instance of a service that won't be closed with systemctl stop

I want to create another instance of sshd on another port which won't be closed with systemctl stop, but I don't know how to go about doing it. I don't know much about Linux, so I have only tried ...
0
votes
3answers
2k views

systemctl Failed to start service, Invalid argument

I need to run a Qt application on startup with root permission , below is the script I created using systemctl named QtApp.service [Unit] Description=QtApp [Service] ExecStart= exec su -l user -c '...
1
vote
1answer
8k views

“sudo: systemctl: command not found” when run on CentOS 6.6

I am using CentOS 6.6. When I try running the command sudo systemctl start elasticsearch I get an error like this: sudo: systemctl: command not found As per my understanding systemctl is not ...
0
votes
0answers
172 views

How to track all child processes spawned by a systemctl service

I have a system service [Unit] Description=dynsock server After=network.target [Service] EnvironmentFile=/etc/dynsock.env ExecStart=/usr/local/bin/dynctl.sh $SERVER $COUNT $BASEPORT $AUTH ExecStop=/...
0
votes
2answers
326 views

launch systemd service within OCI container (runc)

Currently, I am trying to launch systemd service (avahi-daemon) within RUNC container and all of my attempts were failed. I faced several articles for the same task but for the docker solution and one ...
0
votes
0answers
33 views

OpenVPN config file not started automatically, works when running manually

On my Ubuntu 16.04 server, I have three different openvpn conf files in /etc/openvpn: server_tcp.conf, server_udp.conf and server_ptp.conf. All work when starting manually, e.g.: sudo openvpn ...
0
votes
1answer
115 views

How to configure systemd services to start/stop processes with predefined order and timeouts between their starts?

I use systemd to start/stop 4 services in sequential order by using Requires/After/Before/BindsTo fields. systemctl start service01 initiat such start order: service01 -> service02 -> service03 -> ...
0
votes
1answer
675 views

systemd: launch user (with no password) specific service that keepalive after logout

I am trying to run a user specific service with systemd. I am not an admin by profession but more a developer. I am currently testing my solution on an Ubuntu 16.04 but plan to deploy the solution on ...
0
votes
1answer
1k views

cannot re-enable sshd after systemd mask

After disabling sshd, I'm having issues re-enabling/starting it via systemctl. I'm sure I've hosed something, but this is what I did: ~fresh xubuntu 16.04.2 install apt install openssh-server ...
0
votes
1answer
98 views

Point systemctl to use variables from a file

I'm using systemctl to launch and keep my app alive. Below is my .service file. Notice the Environment='METEOR_SETTINGS={"privateKey": "ohnoyouseemyprivatekey!"}'. This is where I will be storing ...
4
votes
2answers
7k views

InfluxDB failed to start as a service

I'm trying to configure InfluxDB for Automatic start-up on a RHEL7 machine. if I do: sudo systemctl start influxdb the service fails [dadmin@localhost dashboard]$ sudo systemctl start influxdb [...
1
vote
0answers
2k views

Can't start services, probably policykit error

I can't restart services as root on CentOS. Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any ...
9
votes
1answer
5k views

A start job is running for sys-subsystem-net-devices

So a while back I was unable to get my wifi to automatically connect in Arch Linux, I looked up some videos and found one that made me do the command sudo systemctl enable with something like netctl-...
2
votes
2answers
3k views

Ubuntu 16.04 Systemd not possible to use systemctl

I have a Ubuntu 16.04 server, since the last restart, systemctl doesn't work anymore. For example if I want to start the nginx, I get the following error: root@SERVER:/# systemctl start nginx ...
1
vote
1answer
1k views

Process started with systemctl throws no errors, but does not appear in process list?

Unix newbie here. I am trying to start gunicorn with systemctl. No error message appears, but it's also not showing up in the processes list: $ sudo systemctl start gunicorn $ ps aux | grep gunicorn ...
1
vote
1answer
5k views

mongodb service doesn't start when there are two ip addresses

in /etc/mongodb.conf file I have this setting bindIp: "127.0.0.1,192.168.1.51", 192.168.1.51 is my private ip given by my router. when I do systemctl status mongodb: mongodb.service - High-...
1
vote
1answer
5k views

how to remove systemctl service? (Arch-Linux)

Before your flag this as a duplicate question, I have looked through all the questions with the same problem and none of the solutions worked for me. I was new to installing Arch-linux and was ...
2
votes
0answers
727 views

Changing port for sshd.socket

I recently installed Arch Linux ARM on my Raspberry Pi. I wanted to build a small webserver with an SSH access. (It's currently only accessible via LAN but I want to change that in the future.) The ...
13
votes
2answers
29k views

systemctl access denied when root

When I run sudo systemctl disable avahi-daemon.socket I get Failed to execute operation: Access denied But it's run as root, how can access be denied? (CentOS 7)
1
vote
0answers
441 views

systemctl suspend not working as expected

I am currently running CentOS 7.2 on a Lenovo ThinkPad, I have been having some weird issue lately, where the machine seemingly wakes up while closed, and in my laptop bag. I am trying to manually ...
0
votes
2answers
613 views

How to tell systemctl that service has started already

I have a service Unit-File mediation.service like this: [Unit] Description=Mobile-IP Log dumper [Service] Type=forking ExecStart=/opt/mediation/mediation start ExecStopPost=/opt/mediation/mediation ...
5
votes
0answers
2k views

systemctl debian 8 jessie: Failed to get D-Bus connection: Unknown error -1 [duplicate]

Unfortunately, in my Debian 8 jessie systemctl does not work at all. Every systemctl command results in: Failed to get D-Bus connection: Unknown error -1 systecmtl status udev Failed to ...
5
votes
1answer
8k views

Error enabling sshd on Ubuntu 16.04

I just installed Ubuntu Server 16.04 on a virtual machine and then installed openssh-server. When I tried to enable sshd: systemctl enable sshd.service I got this message: Failed to execute ...
16
votes
3answers
4k views

How do I get systemctl to print in color when being interacted with from a non-tty?

When I run a command like this: # systemctl status plexmediaserver I get nicely colored output. But when I run the following command: # watch -n300 --color systemctl status plexmediaserver Is ...
2
votes
1answer
2k views

systemd keeps stopping and restarting a service

Before systemd, my /etc/init.d/referee script would start/stop/restart a service without issue. Converting to systemd, which calls the same init.d script, the service starts without an error and then ...
1
vote
1answer
701 views

Systemd service successful but did not start script

I created a script that has to start on boot. So for this script I created a systemd service and enabled it in systemctl. The script is creating a folder in /mnt, then mounts a cd to it, copies files, ...
10
votes
1answer
2k views

How does systemctl schedule system shutdown?

When I type shutdown -h +30, Linux somehow schedules runlevel's change within 30 minutes. On Debian, /sbin/shutdown is symbolic link to /bin/systemctl. My tests indicate that shutdown does not use ...
3
votes
1answer
3k views

How to debug old init.d script under systemd?

I can't get any output from the script. systemd just prints: sinopia.service: control process exited, code=exited status=203 Failed to start LSB: starts the sinopia web server. I can't even launch ...
0
votes
1answer
71 views

suddenly no service, except ssh is accessible from wan

I recently did install the GNOME Desktop and Graphical Administration Tools package groups to my remote host, for remote desktop connection. After the installation of nearly 550 dependencies was done, ...
2
votes
2answers
3k views

Why does systemd process stop as soon as it starts for foreman server process?

I am trying to export a simple Ruby app using foreman. Based on its usage for systemd, I appear to be doing things correctly. However, when I start the target/service, I get status messages along the ...
1
vote
1answer
1k views

Wireless Network Interface name changes sometime after reboot

On my arch linux machine,for some reason the interface name of my wirless network device sometimes changes from "wlp2s0" to "wlan0". I then have to setup my network manually or restart the computer. ...
1
vote
0answers
980 views

Arch Linux “poweroff” always waits 90 seconds in VMware Player

I am running Arch Linux (installed from archlinux-2014.01.05-dual.iso) on VMware Player and have installed vmtoolsd (which belongs to open-vm-tools). Now my problem is that, whenever I do poweroff or ...
5
votes
3answers
5k 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
2k views

rfkill unblock all service does not work on ArchLinux

I'm trying to set up my HP EliteBook 2530p with ArchLinux. Everything works except for the wifi card which is hardblocked by default. Typing rfkill unblock all works and unblocks the wifi card until ...
0
votes
1answer
757 views

Xvnc via systemctl : how to use “xhost +”

I would like to run Xvnc on Fedora 16 as a service. Not vncserver, given that carries the weight of a full window manager, but just Xvnc to start X. I would also like "xhost +" to run on the X ...
1
vote
1answer
914 views

Why would vncserver not use the xstartup script?

I am using Fedora 16, and I've set up vncserver, using the systemctl method... /lib/systemd/system/vncserver@:1.service: [Unit] Description=Remote desktop service (VNC) After=syslog.target network....
1
vote
1answer
786 views

why is systemd/systemctl system v?

I recently installed arch-linux, where support for tsystem V has been DROPPED in lieu of systemd. I'm wondering if anyone knows exactly why. I know that systemd is newer, but does rc.d have security ...
2
votes
0answers
2k views

pronunciation of 'ctl' in commands like 'systemctl' [closed]

There are sorts of commands like 'systemctl', 'hostnamectl', or 'jounralctl'. I realize that 'ctl' is shorthand for control, but I'm wondering what the generally accepted pronunciation of 'ctl' is.
2
votes
1answer
466 views

systemctl (Fedora 17) and interacting spawned processes's consoles

Introduction I've recently upgraded to Fedora 17 and I'm getting used to the newer systemctl daemon manager versus shell init scripts. A feature I need on some of my daemons is the ability to ...
1
vote
1answer
596 views

Understanding init script faults with sysctl

I made my own init script for starting a Mono web application within mod-mono-server2 container (I didn't use AutoHosting, I'm aware of it). When I had openSUSE 11.4 with init I was able to read on ...