Linked Questions

0
votes
1answer
30 views

debian 9 init.d and systemd [duplicate]

By default in Debian 9 systemd is the default. But I still see a lot of things under /etc/init.d directory. Does that mean I still can put things there to start up? Which directory (systemd or init.d) ...
63
votes
3answers
20k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
12
votes
4answers
5k views

How does Linux know where its swap partition is?

I've read that you need to put the swap partition on HDD rather than SSD. My questions are the following: When and how is the "checking" done by the distribution (or something else) to find its ...
16
votes
4answers
8k views

Does systemd still know about runlevels?

Does systemd still have the concept of runlevels? For example is it pointless to use telinit <number>?
11
votes
2answers
22k views

Reducing shutdown timeout for “a stop job is running”

I've got node.js and pm2 installed on a Pi (Raspbian). PM2 was configured to start via pm2 startup and the init scripts it creates. Sometimes when I reboot, shutdown hangs for a few minutes on: A ...
9
votes
2answers
5k views

What is the correct substitute for rc.local in systemd instead of re-creating rc.local

I cannot find the correct way to execute some local scripts (or very local commands) at systemd, I already know I must not create a service (in systemd a unit) for this kinds of scripts (or I must?)......
7
votes
1answer
6k views

In systemd, what starts units generated by generator?

On my machine (Arch linux), systemd-generator generates some unit files in /run/systemd/generator/ and they seem to be started somehow on boot. What is starting them? For example, boot.mount is ...
1
vote
2answers
6k views

How can I modify an init script on CentOS 7?

I have a script in /etc/init.d that I'm trying to add echo statements to...but all of my changes seem to be ignored. I'm guessing because the script itself is not actually run but that systemd is ...
3
votes
1answer
2k views

debian services not running

After an unexpected restart my debian machine is booting up to a terminal screen instead of gui. I'm not sure what to do to diagnose the problem.. but I've noticed that all of the services in /etc/...
2
votes
2answers
2k views

systemd failing to recognize pid file

So I am trying to start a service on systemd enabled system. Name of service is ossec-hids-authd which is the authentication engine(agents) in ossec(Intrusion Detection Software). When I go and start ...
1
vote
1answer
2k views

initctl: Unable to connect to Upstart

I recently upgraded my server from Ubuntu V14.04 to V16.04 and now systemctl doesn't seem to work anymore. I need to prevent transmission-daemon from starting automatically on boot so I issue the ...
2
votes
2answers
3k views

systemctl is-active output wrong state

Have problem At the same host , Why when I use kill to kill a program ilogtaild, This ilogtaild unit is still active? #systemctl status ilogtaild ● ilogtaild.service - SYSV: ilogtail is log collect ...
0
votes
2answers
5k views

rc.local Not working Debian 8

I'm trying to start a Shell Script on boot/startup I tried to edit the /etc/rc.local file, but it didn't work #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser ...
6
votes
1answer
1k views

If systemd has replaced SystemV, why is it still there and who is running the show?

I'm running Debian 8 x64 and still learning it. One of the confusing things I've come across repeatedly on Debian and Ubuntu systems is there appear to be two ways of running and managing services: ...
2
votes
1answer
2k views

Removing Debian package automatically masks systemd service - causes a systemd warning

I booted a Debian unstable container. Early on, systemd inside the container shows rsync.service: Cannot add dependency job, ignoring: Unit rsync.service is masked. I determined that rsync.service ...

15 30 50 per page