Questions tagged [systemd]

systemd is a modern replacement for the traditional Linux init. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

systemd, created by Lennart Poettering and Kay Sievers, is a modern replacement for the traditional Linux init, whether System-V or BSD-style initscripts. Its main features include the ability to express dependencies between services and aggressive parallelization of service startup.

1471 questions
-1
votes
1 answer

systemd script for starting my app server as soon as it is down or system is rebooted

I have a upstart configuration file as shown below which works fine in Ubuntu 14: #/etc/init/data_server.conf #sudo start data_server #sudo stop data_server #sudo status data_server start on runlevel [2345] stop on runlevel [016] chdir…
user1950349
  • 223
  • 1
  • 3
  • 10
-1
votes
2 answers

nftables dnat forwarding is not working properly

Good day, I am currently migrating from iptables to nftables. The problem is my systemd containers are running behind NAT, but I want to forward ports like 443 or 80 to them. There is no error message when I use the following set of commands, but…
TheGoliath
  • 13
  • 1
  • 4
-1
votes
1 answer

Make Apache2.4 listens only to a specific interface in systemd

In a home network environment, I'm hosting a web server but my ISP keeps giving me different but dynamic IP address via DHCP (dhclient here). The system is running systemd (and not rc.d initd). How do I ensure that Apache 2.4 is ONLY listening to…
John Greene
  • 899
  • 10
  • 30
-1
votes
1 answer

Why grep doesn't work in the /usr/lib/systemd/system directory?

The other day I was on a RHEL7.1 system and I wanted to search for a specific word in the /usr/lib/systemd/system directory where all the systemd unit files are located. I used the grep command as usual. See what happened: # cd…
-1
votes
2 answers

Linux init script service - delay until mysql socket is ready

How does one go about delaying a service init script in Linux until the MySQL socket exists? Does the sleep command in a startup script delay the entire boot process, or are init scripts each executed by a different thread to prevent blocking? I am…
OwN
  • 187
  • 3
  • 14
-1
votes
1 answer

start systemd service as dependancy on SYSV service

I have a SYSV service (rstudio-server) running on CentOS7. After boot, it happens to run prior to mounting of NFS filesystem, which is required by rstudio-server service. How do I specify dependency for rstudio-server, which is a SysV service, given…
Vince
  • 371
  • 5
  • 17
-1
votes
2 answers

give privilege to users to start a systemd service

I would like to allow all users (or maybe only some of them but all would already be good) to be able to start/stop a specific systemd service. I found the following solution #include #include int main(void) { …
Jerome WAGNER
  • 193
  • 1
  • 1
  • 8
-1
votes
1 answer

Linux Hostname - SystemD Service File Causing NetworkManager to Fail on Boot

systemd[1]: NetworkManager-wait-online.service: Job nis-domainname.service/start deleted to break ordering cycle starting with NetworkManager-wait-online.service/start
Steven
  • 135
  • 1
  • 8
-1
votes
1 answer

Docker acts different in WMWare VM than on real CentOS 7 box

I'm using Docker to provide a integration testing CentOS 7 environment and need an image with systemd running. Everything seemed fine until a coworker tried to use the setup in a CentOS 7 VM. I was able to reproduce the issue, but have been unable…
pcarter
  • 107
  • 3
-1
votes
1 answer

User service stops even with Restart=always

I have a discord bot that run on my server. I wanted to create a service in systemd instead of using the shell to start by hand. I want the bot to restart when it fails or it is stopped. So I put Restart=always in my service file. When tell the bot…
louisld
  • 101
  • 1
  • 4
-1
votes
1 answer

Cannot get redis 5 to run with systemctl

Installed Redis 5 (have Redis 3 working on server) Modified various configurations in /etc/opt/rh/rh-redis5/redis.conf as necessary including setting supervised to "systemd" and setting daemonize to no. (I also tried "auto" for supervised with no…
STP
-1
votes
1 answer

What does the option passed at the end of the Systemd command mean?

I have this command: systemctl restart rh-php71-php-fpm -l I would like to know what the -l which is passed at the end of the command corresponds to?
Mercer
  • 113
  • 5
-1
votes
1 answer

Systemd Service/Timer -- Oneshot service w/ timer executes multiple times and failed w/ 'start-limit-hit'

I want to start a command (unison) every 5 min as a systemd.service via a systemd.timer unit. The '.service' file alone runs fine. However when it's started by the timer unit, it runs multiple times and stops with these errors: Start request…
netzego
  • 1
  • 4
-2
votes
1 answer

failed to iterate through journal: bad message

I received the following error trying to view logs on an embedded ARM board running Angstrom Linux with systemd. # journalctl -f Failed to iterate through journal: Bad message I searched the systemd documentation and didn't find any useful…
ndyer
  • 105
  • 5
-5
votes
1 answer

Centos 7 no firewall & no systemctl

I really need help, where can I install systemctl and the firewall for centos 7 min? I have tried everything including google which has all turned up no results.
RussellHarrower
  • 185
  • 1
  • 1
  • 12
1 2 3
98
99