How to resolve 'System has not been booted with systemd as init system (PID 1). Can't operate'
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
When I use this command:
root:~# systemctl
Output is:
System has not been booted with systemd as init system (PID 1). Can't operate
This problem occurred in "Kali Linux" and "Debian 9"
How can I resolve this problem?
systemd
add a comment |Â
up vote
2
down vote
favorite
When I use this command:
root:~# systemctl
Output is:
System has not been booted with systemd as init system (PID 1). Can't operate
This problem occurred in "Kali Linux" and "Debian 9"
How can I resolve this problem?
systemd
1
That means that the system is running withsysvinit
rather than systemd. What are you trying to do? I.e., what do you need to usesystemctl
for?
â Stephen Kitt
Apr 27 at 9:20
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
OK, but why specifically withsystemctl
?
â Stephen Kitt
Apr 27 at 12:20
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
When I use this command:
root:~# systemctl
Output is:
System has not been booted with systemd as init system (PID 1). Can't operate
This problem occurred in "Kali Linux" and "Debian 9"
How can I resolve this problem?
systemd
When I use this command:
root:~# systemctl
Output is:
System has not been booted with systemd as init system (PID 1). Can't operate
This problem occurred in "Kali Linux" and "Debian 9"
How can I resolve this problem?
systemd
asked Apr 27 at 8:50
Red Science
1616
1616
1
That means that the system is running withsysvinit
rather than systemd. What are you trying to do? I.e., what do you need to usesystemctl
for?
â Stephen Kitt
Apr 27 at 9:20
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
OK, but why specifically withsystemctl
?
â Stephen Kitt
Apr 27 at 12:20
add a comment |Â
1
That means that the system is running withsysvinit
rather than systemd. What are you trying to do? I.e., what do you need to usesystemctl
for?
â Stephen Kitt
Apr 27 at 9:20
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
OK, but why specifically withsystemctl
?
â Stephen Kitt
Apr 27 at 12:20
1
1
That means that the system is running with
sysvinit
rather than systemd. What are you trying to do? I.e., what do you need to use systemctl
for?â Stephen Kitt
Apr 27 at 9:20
That means that the system is running with
sysvinit
rather than systemd. What are you trying to do? I.e., what do you need to use systemctl
for?â Stephen Kitt
Apr 27 at 9:20
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
OK, but why specifically with
systemctl
?â Stephen Kitt
Apr 27 at 12:20
OK, but why specifically with
systemctl
?â Stephen Kitt
Apr 27 at 12:20
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
To start and stop services without having to worry about which init system is in use, you should use service
:
service openvas start
will use whatever command is appropriate to start the openvas
service.
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is noopenvas
service (no/etc/init.d/openvas
in your case). Is there?
â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).
â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To start and stop services without having to worry about which init system is in use, you should use service
:
service openvas start
will use whatever command is appropriate to start the openvas
service.
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is noopenvas
service (no/etc/init.d/openvas
in your case). Is there?
â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).
â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
 |Â
show 1 more comment
up vote
1
down vote
To start and stop services without having to worry about which init system is in use, you should use service
:
service openvas start
will use whatever command is appropriate to start the openvas
service.
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is noopenvas
service (no/etc/init.d/openvas
in your case). Is there?
â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).
â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
 |Â
show 1 more comment
up vote
1
down vote
up vote
1
down vote
To start and stop services without having to worry about which init system is in use, you should use service
:
service openvas start
will use whatever command is appropriate to start the openvas
service.
To start and stop services without having to worry about which init system is in use, you should use service
:
service openvas start
will use whatever command is appropriate to start the openvas
service.
answered Apr 27 at 12:23
Stephen Kitt
140k22302363
140k22302363
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is noopenvas
service (no/etc/init.d/openvas
in your case). Is there?
â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).
â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
 |Â
show 1 more comment
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is noopenvas
service (no/etc/init.d/openvas
in your case). Is there?
â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).
â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
no, output is root:~# service openvas start Unknown operation openvas.
â Red Science
Apr 27 at 12:26
That means that there is no
openvas
service (no /etc/init.d/openvas
in your case). Is there?â Stephen Kitt
Apr 27 at 12:41
That means that there is no
openvas
service (no /etc/init.d/openvas
in your case). Is there?â Stephen Kitt
Apr 27 at 12:41
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
no, this program is not over there, I should ln -s? if it is true, How can I use it exactly for every program? if it is not true, What can I do?
â Red Science
Apr 27 at 20:20
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in
/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).â Stephen Kitt
Apr 27 at 20:42
Unfortunately itâÂÂs not as simple as that, you canâÂÂt turn a program into a service by linking it in
/etc/init.d
. You need to write (or find) an init script for OpenVAS, or a systemd unit (and switch to systemd).â Stephen Kitt
Apr 27 at 20:42
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
In Ubuntu, I see another error message for systemctl command output: Failed to connect to bus: No such file or directory, What is the meaning of this message?
â Red Science
Apr 27 at 21:37
 |Â
show 1 more comment
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440364%2fhow-to-resolve-system-has-not-been-booted-with-systemd-as-init-system-pid-1%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
That means that the system is running with
sysvinit
rather than systemd. What are you trying to do? I.e., what do you need to usesystemctl
for?â Stephen Kitt
Apr 27 at 9:20
@StephenKitt I would like to start any package with systemctl, like: systectl openvas start
â Red Science
Apr 27 at 12:16
OK, but why specifically with
systemctl
?â Stephen Kitt
Apr 27 at 12:20