diff options
-rw-r--r-- | packaging/installer/functions.sh | 2 | ||||
-rw-r--r-- | system/netdata-lsb.in | 16 |
2 files changed, 13 insertions, 5 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index 95b45d8c63..6f99969063 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -303,7 +303,7 @@ install_non_systemd_init() { run rc-update add netdata default && return 0 - elif [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then + elif [ "${key}" =~ ^devuan* ] || [ "${key}" = "debian-7" ] || [ "${key}" = "ubuntu-12.04" ] || [ "${key}" = "ubuntu-14.04" ]; then echo >&2 "Installing LSB init file..." run cp system/netdata-lsb /etc/init.d/netdata && run chmod 755 /etc/init.d/netdata && diff --git a/system/netdata-lsb.in b/system/netdata-lsb.in index e623f1e0cf..ca197a5202 100644 --- a/system/netdata-lsb.in +++ b/system/netdata-lsb.in @@ -1,10 +1,18 @@ -#!/bin/bash -# SPDX-License-Identifier: GPL-3.0-or-later +#!/usr/bin/env bash # +# Netdata LSB start script +# +# Copyright: +# SPDX-License-Identifier: GPL-3.0-or-later +# +# Author: +# Costa Tsaousis <costa@netdata.cloud> +# Pavlos Emm. Katsoulakis <paul@netdata.cloud> + ### BEGIN INIT INFO # Provides: netdata -# Required-Start: $local_fs $remote_fs $network $named $time apache2 httpd squid nginx mysql named opensips upsd hostapd postfix lm_sensors -# Required-Stop: $local_fs $remote_fs $network $named $time apache2 httpd squid nginx mysql named opensips upsd hostapd postfix lm_sensors +# Required-Start: $local_fs $remote_fs $network $named $time +# Required-Stop: $local_fs $remote_fs $network $named $time # Should-Start: $local_fs $network $named $remote_fs $time $all # Should-Stop: $local_fs $network $named $remote_fs $time $all # Default-Start: 2 3 4 5 |