Questions tagged [systemctl]

systemctl is the main command to control and introspect the systemd Linux init system.

systemd is a system and service manager in Linux. More information about switches and arguments can be found here.

228 questions
0
votes
2 answers

How to invoke sudo command such as systemctl via remote ssh

I'm trying to set up a deployment pipeline that involves invoking systemctl to start and stop services. I have a shell script on the server that invokes systemctl and my build server will be invoking the shell script via remote ssh. But systemctl…
KevinS
  • 109
  • 1
0
votes
0 answers

`systemctl restart iptables` blocks everything

Was connecting through ssh to a Fedora 23 server and decided to restart iptables after adding a new rule: systemctl restart iptables. However the iptables never restarted, or was very slow to restart (I waited 3+ hours) and it resulted in blocking…
0
votes
2 answers

fprintd: ** Message: No devices in use, exit

I keep getting following messages inside of /var/log/messages: 4/7/2016, 11:03:49 AM fprintd[3277] Launching FprintObject 4/7/2016, 11:03:49 AM fprintd[3277] ** Message: D-Bus service launched with name: net.reactivated.Fprint 4/7/2016,…
alexus
  • 13,112
  • 32
  • 117
  • 174
0
votes
2 answers

etcd2 will not start via systemctl on CoreOS

Really hoping somebody can help me out here. I had a CoreOS etcd2 member's disk fill up. After a reboot etcd2 was in a bad way. Ultimately I removed the /var/lib/etcd2/member data directory and went through the instructions to remove and re-add the…
0
votes
1 answer

Can't get systemd-networkd to start successfully

I have a mini-pc with six network interfaces running CentOS 7.2 with Kernel 3.10 with a minimal install. I want to name my interfaces net0-net5. To do so I'm trying to follow the suggestions mentioned here:…
dutsnekcirf
  • 249
  • 2
  • 4
  • 16
0
votes
0 answers

Nagios 4 on Centos 7 - Old server

I am trying to install Nagios 4 on an old Pentium 4 machine running Centos 7. I have installed the OS from the x86_64 ISO provided at the website. Nagios is downloaded with wget from Sourceforge. I have followed these instructions to the letter, but…
dlyk1988
  • 1,674
  • 4
  • 24
  • 36
0
votes
4 answers

MariaDB RHEL Fresh Install Root Login Issue

I just installed MariaDB on a RHEL system and this is my first time using MariaDB. I can start/stop the service only using the following commands: sudo systemctl start mariadb.service sudo systemctl enable mariadb.service sudo systemctl stop…
Jackie W
  • 1
  • 1
  • 1
0
votes
1 answer

Debian - How to prevent file corruption on power loss?

I have a Debian based OS, and I am creating a program that have support for upgrading itself. The program is ran on system-level as a systemd service. I have a problem when I update the software, which in practice means replacing some files on…
ml_kalju
  • 3
  • 3
0
votes
1 answer

Ignore ExecStartPre sleep for ad-hoc systemctl starts

I have a PDF Rendering custom application, I have successfully created a systemctl service for it. I have successfully configured the ExecStartPre=/bin/sleep 30 to delay the start by 30 seconds. Unfortunately searching the web and Linux…
0
votes
2 answers

Unable to initialize Kubernetes cluster upon sudo kubeadm init line command

Trying to deploy Kubernetes on AWS EC2 instance. I'm seeing the following errors/warning when running sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=all Errors: [WARNING CRI]: container runtime is not running: output:…
0
votes
0 answers

Environment Variable set in systemd service file not set

I have the problem than when I start my service a environment variable I have set in the service file is not set. The Service file is as…
Lars Nielsen
  • 101
  • 2
0
votes
1 answer

dockerd does not start debian

Linux OS: debian11 Everything worked, but I think today after sudo apt upgrade I installed new version of docker. Then docker daemon does not start: $ sudo systemctl start docker Job for docker.service failed because the control process exited with…
K.I.
  • 123
  • 1
  • 5
0
votes
1 answer

Sudoers NOPASSWD not working for specified commands

I have the following entries in the sudoers file: christian ALL=(root)NOPASSWD: /usr/sbin/shutdown christian ALL=(root)NOPASSWD: /usr/bin/systemctl start mc When running sudo shutdown -h now or sudo systemctl start mc, I still have to enter the…
Apollo
  • 113
  • 3
0
votes
1 answer

systemd not able to run some bash scripts

(Update with more info May 16, see end of post for journalctl messages) I've created a systemd timer and service with the purpose of running a handful of bash scripts. In particular I'm aimed at mounting an external hdd at a given time, then…
David
  • 1
  • 2
0
votes
1 answer

Unit shutdown.service could not be found

I'm trying to set up in a Redhat server, 2 services that start a database at startup, and stop it at shutdown, so I have put 2 files under /etc/systemd/system as follows: shutdown.service: [Unit] Description=Shutdown database at…
Souad
  • 236
  • 3
  • 4
  • 14