# Honouring System Default Policies on ntop Packages | ntop

[Blog](https://www.ntop.org/blog/)[ntop](https://www.ntop.org/category/ntop/)

# Honouring System Default Policies on ntop Packages

January 8, 20192 min read

Many distributions provide mechanisms to let the system administrator decide if the new installed packages should be enabled and/or started automatically. Previously, the ntop services were always enabled and started automatically after the first package installation, regardless of any system preferences. Now the ntop packages rely on system utilities to properly start, stop and restart services after installation in order to correctly honor system policies.

Due to the distribution specific defaults, this is now the default behaviour of the services installed by the ntop packages:

<table tabindex="0"><tbody><tr><td></td><th>Debian/Ubuntu</th><th>Centos 7</th><th>Other</th></tr><tr><th>Started after Install</th><td>Yes</td><td>No</td><td>Yes</td></tr><tr><th>Enabled after Install</th><td>Yes</td><td>No</td><td>Yes</td></tr><tr><th>Restarted after Upgrade</th><td>Yes</td><td>Yes</td><td>Yes</td></tr></tbody></table>

Here are some instructions on how to modify the default behaviour on the supported systems.

On Debian/Ubuntu based distributions, the administrator can use the script [policy-rc.d](https://major.io/2016/05/05/preventing-ubuntu-16-04-starting-daemons-package-installed/) to define the default behavior for the services installed from packages. By default, all the services are enabled and started automatically, but this can be changed by creating the file `/usr/sbin/policy-rc.d` with the following contents:

exit 101

and making it executable. Now all the new services (which honor the policy-rc.d policy) will not be automatically started or enabled. The specification for policy-rc.d can be found at the [following URL](https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt).

On the other hand, on CentOS/Fedora based distributions, the default behaviour for installed services is to *not* enable and start them. Actually, on CentOS services are never started automatically after installation. However, the administrator can decide to change the default policy or to override the policy for some specific packages. CentOS relies on the standard [systemd-preset](https://www.certdepot.net/systemd-preset-mechanism/) mechanism to define such policies. The directory `/usr/lib/systemd/system-preset` contains the configuration files which define the policies of the system. In particular, the file `/usr/lib/systemd/system-preset/90-default.preset` contains the default presets for some common packages.

For example, in order to automatically start ntopng after installation, the file `/usr/lib/systemd/system-preset/20-ntop.preset` can be created with the following contents:

enable ntopng

Now that you know all this, you can play with the new ntop dev packages that already implement this new behaviour. In the near future we will port them also to the stable version to implement a new consistent platform behaviour.

## Keep reading

centoMay 18, 2026

### [Post-Quantum Cryptography (PQC) Analysis](https://www.ntop.org/post-quantum-cryptography-pqc-analysis/)

Modern digital security relies on public-key encryption (like RSA and ECC) to protect global data. The future arrival of a Cryptographically Relevant Quantum Computer (CRQC) will completely break these mathematical foundations. To…

ntopJul 11, 2025

### [New, Fast, Scalable ClickHouse Integration for High-Volume Networks](https://www.ntop.org/new-fast-scalable-clickhouse-integration-for-high-volume-networks/)

When it comes to monitoring very large networks and the flows’ cardinality reaches into the billions, the performance of historical data storage and query systems becomes a critical bottleneck. Network operators, analysts,…

ntopJun 30, 2025

### [Network Visibility and Observability: ntopng vs SNMP+](https://www.ntop.org/network-visibility-and-observability-ntopng-vs-snmp/)

Recently, we’ve encountered users with high monitoring requirements. Some users need to monitor 1,000 routers and want to know who are the top talkers or top protocols. Others have a network with…

## Try it on your own network

Download the free Community edition and see your first flows in five minutes.

[Download ntopng free](https://www.ntop.org/support/documentation/software-installation/)[Talk to an engineer](https://www.ntop.org/support/need-help/contacts/)
Source: https://www.ntop.org/honouring-system-default-policies-on-ntop-packages/