Systemd can't disable services in 16.04

When I trie to disable any service I get this error

ntp.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install disable ntp
insserv: warning: current start runlevel(s) (empty) of script `ntp' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `ntp' overrides LSB defaults (1).
insserv: warning: current start runlevel(s) (empty) of script `ntp' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (1 2 3 4 5) of script `ntp' overrides LSB defaults (1).

How to fix this . I wan’t to disable some services that I do not need and slow my boot-up .

Hi @IvCHo,

Control Centre > Personal > Startup Applications and take out the ticks of what you don't want!. I don't know about the feedback above sorry!.

1 Like

@IvCHo Could you post the commands too? Just the output isn’t saying much, it could be that you made a typo in the command or that the service you are trying to disable isn’t installed or whatever.

What I do remember from Arch is that the ntp service is a deamon, so it is ntpd.service. The command you are trying should then be like:

$ sudo systemctl disable ntpd.service

Mind the d in ntpd

3 Likes

So I am trieing to stop network time protocol . The command I use is systemctl disable ntp I have tried it in Manjaro Daniella and it works . But I don’t know wath is the diffirence betwene arch systemd and ubuntu’s systemd .

This is system level administration . Autostarts is for starting programs when target graphical desktop has been reached.

1 Like

There isn't any difference. Here's the man entry for systemctl disable [NAME]:

disable NAME...

Disables one or more units. This removes all symlinks to the specified unit files from the unit configuration directory, and hence undoes the changes made by enable. Note however that this removes all symlinks to the unit files (i.e. including manual additions), not just those actually created by enable. This call implicitly reloads the systemd daemon configuration after completing the disabling of the units. Note that this command does not implicitly stop the units that are being disabled. If this is desired, either --now should be used together with this command, or an additional stop command should be executed afterwards.
This command will print the actions executed. This output may be suppressed by passing --quiet.
This command honors --system, --user, --runtime and --global in a similar way as enable.

That may be . But I have never encountered such error on manjaro . I searched the net and people with simular problems are on debian or ubuntu .