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

start sevices after boot complete in linux mint

I am using linux mint 18.3 Sylvia. My system is taking a long time to boot, as I found a lot of services are running at start up. What I am asking is there any way I could start those services after boot process is completed? Because I dont need…
mehedi
  • 103
  • 3
0
votes
0 answers

How to keep Ubuntu systemctl process alive after disconnecting from shell?

I'm new to Ubuntu, and I want to run a (java maven) command which starts a web server embedded with my web application, on a remote Ubuntu server. I can run it with following bash command (typed directly to remote console): #!/bin/bash cd…
0
votes
1 answer

'systemctl restart service' not working on CentOS 7

I have a custom service managed by an init script in /etc/init.d and, after upgrading to CentOS 7, with systemd, 'systemctl restart service' is not working correctly. I need to execute two times 'systemctl restart service' to make it restart (the…
Albert
  • 93
  • 1
  • 3
  • 9
0
votes
0 answers

systemd php script output only to systemctl status

i'm trying to run a php script 24/7 with systemd. the terminal output of the script is normally irrelevant so i set 'StandardOutput=0' and 'StandardError=0' to not mess logfiles with gigabytes of data. but it were great to see both when i from time…
0
votes
1 answer

Behaviour of systemd services on reboot

On a Debian 8 I have deployed an application of mine that consists of several smaller apps and one of those smaller ones uses a HDF5 file. The problem with HDF5 files is that you have to close them. If for example you program chrases or your program…
Pablo
  • 179
  • 1
  • 3
  • 13
0
votes
1 answer

systemctl start works, but systemctl enable fails with realpath() error

I'm trying to set up a simple uwsgi service named project on Vagrant, Ubuntu 16.04. It should start a simple Flask app that Nginx can talk to. I can get the service to work when running systemctl start project, but can't get service to run after…
Puchatek
  • 101
  • 4
0
votes
1 answer

how to get systemctl status on remote machine

when we run this on remote machine we get ssh $IP "systemctl disable iptables.service" and standard error is echo $? 0 but lets run it with error ( I add wrong syntax ) for example ssh $IP "systemctl disable_bug iptables.service" why we get 0…
shalom
  • 461
  • 13
  • 29
0
votes
1 answer

start firewalld.service VIA ssh

we have very strange problem when we configure and start the firewall on remote machine when we run VIA ssh the following command ( from bash script ) , we have redhat 7 machine systemctl start firewalld.service example from script: ssh $USER@$IP…
shalom
  • 461
  • 13
  • 29
0
votes
3 answers

Disable maintenance mode from within recovery (Debian)

My rootserver's power supply died the day before and the hoster had to replace it. Since then, the server does not boot correctly anymore. Because of the sudden powerloss, it starts right in some kind of maintenance mode. The hoster is not able to…
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
0
votes
0 answers

services in CentOS e.g. nginx, php-fpm doesn't include symbolic link configuration files

I have 2 services in CentOS 7 - nginx - php-fpm Those services have main configuration to include *.conf in certain directory. However, it didn't read the symbolic link file in that certain directory. Please see screenshot for better…
chaintng
  • 519
  • 4
  • 8
0
votes
1 answer

Disabling MariaDb on Debian jessie doesn't work

I have MariaDb installed on Debian jessie. I need to remove it from automatic system startup. I tried recommended commands but they did not work: root@debian:/home/gameboy# systemctl disable mysql Synchronizing state for mysql.service with sysvinit…
trzczy
  • 173
  • 1
  • 1
  • 8
0
votes
1 answer

CentOS service shows up twice in process list

I need to sync a directory between two servers and decided to create a service which listens to changes in a file and runs…
Ciprian
  • 107
  • 4
0
votes
2 answers

Main process exited, code=exited, status=7/NOTRUNNING

I have a node application, running via a systemd service on Ubuntu 16.04 However, after some time the service is getting restarted automatically. Here's what I get in the logs: Mar 17 14:35:10 testmachine systemd[1]: myService.service: Main process…
Dushyant Bangal
  • 123
  • 1
  • 1
  • 9
0
votes
1 answer

With syslog-ng how can I reset an environment variable without losing log messages?

On this system, imagine that there is a program that detects whether or not it is day or night and sets and environment variable DAY. My environment variable DAY is picked up and used in this working fragment: log { source { …
tpc1095
  • 5
  • 3
0
votes
2 answers

Ubuntu 16 server, systemctl restart elasticsearch does nothing, and there's no log

On ubuntu 16 lts server system, a newly installed elasticsearch instance won't start up with systemctl restart elasticsearch (or with start). No logs are created, manually running /usr/share/elasticsearch/bin/elasticsearch as user elasticsearch…
Warren P
  • 1,195
  • 8
  • 21
  • 35