@cryptotaxi247 / netdata-1 / commits / 2a798ad55

Debian packaging (#8982)

* Add protobuf-compiler This adds the package protobuf-compiler to the dependencies. Without it, prometheus support will not be included. * Remove libraries from dependencies There is no need to include the libraries since they will automaticaly be added by ${shlibs:Depends} * Remove various control files - control.buster - control.eoan - control.xenial Default control file can be used - control.jessie About to be unsupported - control.wheezy unsupported - control.trusty Since Netdata need libuv1-dev to build, it cannot be build on Trusty anymore because it doesn't have that library. * Fix sysv init scripts Set the location of the pidfile using $PIDFILE in the init script and in the defaults file. This way no changes are needed when compiling for systemd or sysv. * Update documentation to reflect the changes * Add note about updating the changelog * Update install instructions * Remove travis control file adjustments Since these control files have been removed, this code is now obsolete. * Remove unused control.focal file

Sander Klein committed Aug 19, 2020 at 15:14 UTC 2a798ad5510008abcb3949d17d97ddaa6d2801b8
12 files changed +27 -543
.travis/package_management/configure_deb_lxc_environment.py
-24
@@ -80,30 +80,6 @@ tar_file="%s/netdata-%s.tar.gz" % (os.path.dirname(dest_archive), friendly_versi
80 print("5. I will be building version '%s' of netdata." % os.environ['BUILD_VERSION'])
81 dest_archive="%s/netdata-%s.tar.gz" % (build_path, friendly_version)
82
83 -### Debian
84 -if str(os.environ["BUILD_STRING"]).count("debian/jessie") == 1:
85 - print("5.1 We are building for Jessie, adjusting control file")
86 - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
87 - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.jessie', 'contrib/debian/control'])
88 -if str(os.environ["BUILD_STRING"]).count("debian/buster") == 1:
89 - print("5.1 We are building for Buster, adjusting control file")
90 - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
91 - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.buster', 'contrib/debian/control'])
92 -
93 -### Ubuntu
94 -if str(os.environ["BUILD_STRING"]).count("ubuntu/focal") == 1:
95 - print("5.1 We are building for Focal, adjusting control file")
96 - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
97 - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.focal', 'contrib/debian/control'])
98 -if str(os.environ["BUILD_STRING"]).count("ubuntu/xenial") == 1:
99 - print("5.1 We are building for Xenial, adjusting control file")
100 - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
101 - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.xenial', 'contrib/debian/control'])
102 -if str(os.environ["BUILD_STRING"]).count("ubuntu/eoan") == 1:
103 - print("5.1 We are building for Eoan, adjusting control file")
104 - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
105 - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.eoan', 'contrib/debian/control'])
106 -
83 common.prepare_version_source(dest_archive, friendly_version, tag=tag)
84
85 print("6. Installing build.sh script to build path")
contrib/README.md
+19 -28
@@ -22,6 +22,17 @@ way to do this is with a symlink:
22 ln -s contrib/debian
23 ```
24
25 +Edit the `debian/changelog` file to reflect the package version and
26 +the build time:
27 +
28 +```sh
29 +netdata (1.21.0) unstable; urgency=medium
30 +
31 + * Initial Release
32 +
33 + -- Netdata Builder <bot@netdata.cloud> Tue, 12 May 2020 10:36:52 +0200
34 +```
35 +
36 Then build the debian package:
37
38 ```sh
@@ -32,36 +43,16 @@ This should give a package that can be installed in the parent
43 directory, which you can install manually with dpkg.
44
45 ```sh
35 -ls ../*.deb
36 -../netdata_1.0.0_amd64.deb
37 -sudo dpkg -i ../netdata_1.0.0_amd64.deb
46 +ls -1 ../*.deb
47 +../netdata_1.21.0_amd64.deb
48 +../netdata-dbgsym_1.21.0_amd64.deb
49 +../netdata-plugin-cups_1.21.0_amd64.deb
50 +../netdata-plugin-cups-dbgsym_1.21.0_amd64.deb
51 +../netdata-plugin-freeipmi_1.21.0_amd64.deb
52 +../netdata-plugin-freeipmi-dbgsym_1.21.0_amd64.deb
53 +sudo dpkg -i ../netdata_1.21.0_amd64.deb
54 ```
55
40 -### Building for a Debian system without systemd
41 -
42 -The included packaging is designed for modern Debian systems that
43 -are based on systemd. To build non-systemd packages (for example,
44 -for Debian wheezy), you will need to make a couple of minor
45 -updates first.
46 -
47 -- edit `contrib/debian/rules` and adjust the `dh` rule near the
48 - top to remove systemd (see comments in that file).
49 -
50 -- rename `contrib/debian/control.wheezy` to `contrib/debian/control`.
51 -
52 -- change `control.wheezy from contrib/Makefile* to control`.
53 -
54 -- uncomment `EXTRA_OPTS="-P /var/run/netdata.pid"` in
55 - `contrib/debian/netdata.default`
56 -
57 -- edit `contrib/debian/netdata.init` and change `PIDFILE` to
58 - `/var/run/netdata.pid`
59 -
60 -- remove `dpkg-statoverride --update --add --force root netdata 0775 /var/lib/netdata/registry` from
61 - `contrib/debian/netdata.postinst.in`. If you are going to handle the unique id file differently.
62 -
63 -Then proceed as the main instructions above.
64 -
56 ### Reinstalling Netdata
57
58 The recommended way to upgrade Netdata packages built from this
contrib/debian/control
+3 -13
@@ -24,7 +24,8 @@ Build-Depends: debhelper (>= 9),
24 pkg-config,
25 curl,
26 gcc,
27 - g++
27 + g++,
28 + protobuf-compiler
29 Section: net
30 Priority: optional
31 Maintainer: Netdata Builder <bot@netdata.cloud>
@@ -36,18 +37,7 @@ Architecture: any
37 Depends: adduser,
38 libcap2-bin (>= 1:2.0),
39 lsb-base (>= 3.1-23.2),
39 - zlib1g,
40 - libuuid1,
41 - libuv1,
42 - liblz4-1,
43 - libjudydebian1,
40 openssl,
45 - libmnl0,
46 - libjson-c3,
47 - libnetfilter-acct1,
48 - libprotobuf-c1,
49 - libsnappy1v5,
50 - libprotoc10,
41 ${misc:Depends},
42 ${shlibs:Depends}
43 Pre-Depends: dpkg (>= 1.17.14)
@@ -69,5 +59,5 @@ Depends: freeipmi,
59 netdata (= ${source:Version})
60 Description: FreeIPMI - The Intelligent Platform Management System.
61 The IPMI specification defines a set of interfaces for platform management.
72 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
62 + It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
63 are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.buster deleted
-73
@@ -1,73 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - libuv1-dev,
9 - liblz4-dev,
10 - libjudy-dev,
11 - libssl-dev,
12 - libmnl-dev,
13 - libjson-c-dev,
14 - libcups2-dev,
15 - libipmimonitoring-dev,
16 - libnetfilter-acct-dev,
17 - libsnappy-dev,
18 - libprotobuf-dev,
19 - libprotoc-dev,
20 - cmake,
21 - autogen,
22 - autoconf,
23 - automake,
24 - pkg-config,
25 - curl,
26 - gcc,
27 - g++
28 -Section: net
29 -Priority: optional
30 -Maintainer: Netdata Builder <bot@netdata.cloud>
31 -Standards-Version: 3.9.6
32 -Homepage: https://netdata.cloud
33 -
34 -Package: netdata
35 -Architecture: any
36 -Depends: adduser,
37 - libcap2-bin (>= 1:2.0),
38 - lsb-base (>= 3.1-23.2),
39 - zlib1g,
40 - libuuid1,
41 - libuv1,
42 - liblz4-1,
43 - libjudydebian1,
44 - openssl,
45 - libmnl0,
46 - libjson-c3,
47 - libnetfilter-acct1,
48 - libprotobuf-c1,
49 - libsnappy1v5,
50 - libprotoc17,
51 - ${misc:Depends},
52 - ${shlibs:Depends}
53 -Pre-Depends: dpkg (>= 1.17.14)
54 -Description: real-time charts for system monitoring
55 - Netdata is a daemon that collects data in realtime (per second)
56 - and presents a web site to view and analyze them. The presentation
57 - is also real-time and full of interactive charts that precisely
58 - render all collected values.
59 -
60 -Package: netdata-plugin-cups
61 -Architecture: any
62 -Depends: cups,
63 - netdata (>= ${source:Version})
64 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
65 -
66 -Package: netdata-plugin-freeipmi
67 -Architecture: any
68 -Depends: freeipmi,
69 - netdata (= ${source:Version})
70 -Description: FreeIPMI - The Intelligent Platform Management System.
71 - The IPMI specification defines a set of interfaces for platform management.
72 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
73 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.eoan deleted
-73
@@ -1,73 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - libuv1-dev,
9 - liblz4-dev,
10 - libjudy-dev,
11 - libssl-dev,
12 - libmnl-dev,
13 - libjson-c-dev,
14 - libcups2-dev,
15 - libipmimonitoring-dev,
16 - libnetfilter-acct-dev,
17 - libsnappy-dev,
18 - libprotobuf-dev,
19 - libprotoc-dev,
20 - cmake,
21 - autogen,
22 - autoconf,
23 - automake,
24 - pkg-config,
25 - curl,
26 - gcc,
27 - g++
28 -Section: net
29 -Priority: optional
30 -Maintainer: Netdata Builder <bot@netdata.cloud>
31 -Standards-Version: 3.9.6
32 -Homepage: https://netdata.cloud
33 -
34 -Package: netdata
35 -Architecture: any
36 -Depends: adduser,
37 - libcap2-bin (>= 1:2.0),
38 - lsb-base (>= 3.1-23.2),
39 - zlib1g,
40 - libuuid1,
41 - libuv1,
42 - liblz4-1,
43 - libjudydebian1,
44 - openssl,
45 - libmnl0,
46 - libjson-c4,
47 - libnetfilter-acct1,
48 - libprotobuf-c1,
49 - libsnappy1v5,
50 - libprotoc17,
51 - ${misc:Depends},
52 - ${shlibs:Depends}
53 -Pre-Depends: dpkg (>= 1.17.14)
54 -Description: real-time charts for system monitoring
55 - Netdata is a daemon that collects data in realtime (per second)
56 - and presents a web site to view and analyze them. The presentation
57 - is also real-time and full of interactive charts that precisely
58 - render all collected values.
59 -
60 -Package: netdata-plugin-cups
61 -Architecture: any
62 -Depends: cups,
63 - netdata (>= ${source:Version})
64 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
65 -
66 -Package: netdata-plugin-freeipmi
67 -Architecture: any
68 -Depends: freeipmi,
69 - netdata (= ${source:Version})
70 -Description: FreeIPMI - The Intelligent Platform Management System.
71 - The IPMI specification defines a set of interfaces for platform management.
72 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
73 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.focal deleted
-73
@@ -1,73 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - libuv1-dev,
9 - liblz4-dev,
10 - libjudy-dev,
11 - libssl-dev,
12 - libmnl-dev,
13 - libjson-c-dev,
14 - libcups2-dev,
15 - libipmimonitoring-dev,
16 - libnetfilter-acct-dev,
17 - libsnappy-dev,
18 - libprotobuf-dev,
19 - libprotoc-dev,
20 - cmake,
21 - autogen,
22 - autoconf,
23 - automake,
24 - pkg-config,
25 - curl,
26 - gcc,
27 - g++
28 -Section: net
29 -Priority: optional
30 -Maintainer: Netdata Builder <bot@netdata.cloud>
31 -Standards-Version: 3.9.6
32 -Homepage: https://netdata.cloud
33 -
34 -Package: netdata
35 -Architecture: any
36 -Depends: adduser,
37 - libcap2-bin (>= 1:2.0),
38 - lsb-base (>= 3.1-23.2),
39 - zlib1g,
40 - libuuid1,
41 - libuv1,
42 - liblz4-1,
43 - libjudydebian1,
44 - openssl,
45 - libmnl0,
46 - libjson-c4,
47 - libnetfilter-acct1,
48 - libprotobuf-c1,
49 - libsnappy1v5,
50 - libprotoc17,
51 - ${misc:Depends},
52 - ${shlibs:Depends}
53 -Pre-Depends: dpkg (>= 1.17.14)
54 -Description: real-time charts for system monitoring
55 - Netdata is a daemon that collects data in realtime (per second)
56 - and presents a web site to view and analyze them. The presentation
57 - is also real-time and full of interactive charts that precisely
58 - render all collected values.
59 -
60 -Package: netdata-plugin-cups
61 -Architecture: any
62 -Depends: cups,
63 - netdata (>= ${source:Version})
64 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
65 -
66 -Package: netdata-plugin-freeipmi
67 -Architecture: any
68 -Depends: freeipmi,
69 - netdata (= ${source:Version})
70 -Description: FreeIPMI - The Intelligent Platform Management System.
71 - The IPMI specification defines a set of interfaces for platform management.
72 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
73 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.jessie deleted
-71
@@ -1,71 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - liblz4-dev,
9 - libjudy-dev,
10 - libssl-dev,
11 - libmnl-dev,
12 - libjson-c-dev,
13 - libcups2-dev,
14 - libipmimonitoring-dev,
15 - libnetfilter-acct-dev,
16 - libsnappy-dev,
17 - libprotobuf-dev,
18 - libprotoc-dev,
19 - cmake,
20 - autogen,
21 - autoconf,
22 - automake,
23 - pkg-config,
24 - curl,
25 - gcc,
26 - g++
27 -Section: net
28 -Priority: optional
29 -Maintainer: Costa Tsaousis <costa@tsaousis.gr>
30 -Standards-Version: 3.9.6
31 -Homepage: https://github.com/netdata/netdata/wiki
32 -
33 -Package: netdata
34 -Architecture: any
35 -Depends: adduser,
36 - libcap2-bin (>= 1:2.0),
37 - lsb-base (>= 3.1-23.2),
38 - zlib1g,
39 - libuuid1,
40 - liblz4-1,
41 - libjudydebian1,
42 - openssl,
43 - libmnl0,
44 - libjson-c2,
45 - libnetfilter-acct1,
46 - libprotobuf-c1,
47 - libsnappy1,
48 - libprotoc9,
49 - ${misc:Depends},
50 - ${shlibs:Depends}
51 -Pre-Depends: dpkg (>= 1.17.14)
52 -Description: real-time charts for system monitoring
53 - Netdata is a daemon that collects data in realtime (per second)
54 - and presents a web site to view and analyze them. The presentation
55 - is also real-time and full of interactive charts that precisely
56 - render all collected values.
57 -
58 -Package: netdata-plugin-cups
59 -Architecture: any
60 -Depends: cups,
61 - netdata (>= ${source:Version})
62 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
63 -
64 -Package: netdata-plugin-freeipmi
65 -Architecture: any
66 -Depends: freeipmi,
67 - netdata (= ${source:Version})
68 -Description: FreeIPMI - The Intelligent Platform Management System.
69 - The IPMI specification defines a set of interfaces for platform management.
70 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
71 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.trusty deleted
-71
@@ -1,71 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - liblz4-dev,
9 - libjudy-dev,
10 - libssl-dev,
11 - libmnl-dev,
12 - libjson-c-dev,
13 - libcups2-dev,
14 - libipmimonitoring-dev,
15 - libnetfilter-acct-dev,
16 - libsnappy-dev,
17 - libprotobuf-dev,
18 - libprotoc-dev,
19 - cmake,
20 - autogen,
21 - autoconf,
22 - automake,
23 - pkg-config,
24 - curl,
25 - gcc,
26 - g++
27 -Section: net
28 -Priority: optional
29 -Maintainer: Netdata Builder <bot@netdata.cloud>
30 -Standards-Version: 3.9.6
31 -Homepage: https://netdata.cloud
32 -
33 -Package: netdata
34 -Architecture: any
35 -Depends: adduser,
36 - libcap2-bin (>= 1:2.0),
37 - lsb-base (>= 3.1-23.2),
38 - zlib1g,
39 - libuuid1,
40 - liblz4-1,
41 - libjudydebian1,
42 - openssl,
43 - libmnl0,
44 - libjson-c2,
45 - libnetfilter-acct1,
46 - libprotobuf-c0,
47 - libsnappy1,
48 - libprotoc8,
49 - ${misc:Depends},
50 - ${shlibs:Depends}
51 -Pre-Depends: dpkg (>= 1.17.14)
52 -Description: real-time charts for system monitoring
53 - Netdata is a daemon that collects data in realtime (per second)
54 - and presents a web site to view and analyze them. The presentation
55 - is also real-time and full of interactive charts that precisely
56 - render all collected values.
57 -
58 -Package: netdata-plugin-cups
59 -Architecture: any
60 -Depends: cups,
61 - netdata (>= ${source:Version})
62 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
63 -
64 -Package: netdata-plugin-freeipmi
65 -Architecture: any
66 -Depends: freeipmi,
67 - netdata (= ${source:Version})
68 -Description: FreeIPMI - The Intelligent Platform Management System.
69 - The IPMI specification defines a set of interfaces for platform management.
70 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
71 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.wheezy deleted
-41
@@ -1,41 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - pkg-config,
5 - dpkg-dev (>= 1.13.19),
6 - cmake,
7 - zlib1g-dev,
8 - uuid-dev
9 -Section: net
10 -Priority: optional
11 -Maintainer: Costa Tsaousis <costa@tsaousis.gr>
12 -Standards-Version: 3.9.6
13 -Homepage: https://github.com/netdata/netdata/wiki
14 -
15 -Package: netdata
16 -Architecture: any
17 -Depends: adduser,
18 - libcap2-bin (>= 1:2.0),
19 - lsb-base (>= 3.1-23.2),
20 - ${misc:Depends},
21 - ${shlibs:Depends}
22 -Description: real-time charts for system monitoring
23 - Netdata is a daemon that collects data in realtime (per second)
24 - and presents a web site to view and analyze them. The presentation
25 - is also real-time and full of interactive charts that precisely
26 - render all collected values.
27 -
28 -Package: netdata-plugin-cups
29 -Architecture: any
30 -Depends: cups,
31 - netdata (>= ${source:Version})
32 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
33 -
34 -Package: netdata-plugin-freeipmi
35 -Architecture: any
36 -Depends: freeipmi,
37 - netdata (= ${source:Version})
38 -Description: FreeIPMI - The Intelligent Platform Management System.
39 - The IPMI specification defines a set of interfaces for platform management.
40 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
41 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/control.xenial deleted
-73
@@ -1,73 +0,0 @@
1 -Source: netdata
2 -Build-Depends: debhelper (>= 9),
3 - dh-autoreconf,
4 - dh-systemd (>= 1.5),
5 - dpkg-dev (>= 1.13.19),
6 - zlib1g-dev,
7 - uuid-dev,
8 - libuv1-dev,
9 - liblz4-dev,
10 - libjudy-dev,
11 - libssl-dev,
12 - libmnl-dev,
13 - libjson-c-dev,
14 - libcups2-dev,
15 - libipmimonitoring-dev,
16 - libnetfilter-acct-dev,
17 - libsnappy-dev,
18 - libprotobuf-dev,
19 - libprotoc-dev,
20 - cmake,
21 - autogen,
22 - autoconf,
23 - automake,
24 - pkg-config,
25 - curl,
26 - gcc,
27 - g++
28 -Section: net
29 -Priority: optional
30 -Maintainer: Netdata Builder <bot@netdata.cloud>
31 -Standards-Version: 3.9.6
32 -Homepage: https://netdata.cloud
33 -
34 -Package: netdata
35 -Architecture: any
36 -Depends: adduser,
37 - libcap2-bin (>= 1:2.0),
38 - lsb-base (>= 3.1-23.2),
39 - zlib1g,
40 - libuuid1,
41 - libuv1,
42 - liblz4-1,
43 - libjudydebian1,
44 - openssl,
45 - libmnl0,
46 - libjson-c2,
47 - libnetfilter-acct1,
48 - libprotobuf-c1,
49 - libsnappy1v5,
50 - libprotoc9v5,
51 - ${misc:Depends},
52 - ${shlibs:Depends}
53 -Pre-Depends: dpkg (>= 1.17.14)
54 -Description: real-time charts for system monitoring
55 - Netdata is a daemon that collects data in realtime (per second)
56 - and presents a web site to view and analyze them. The presentation
57 - is also real-time and full of interactive charts that precisely
58 - render all collected values.
59 -
60 -Package: netdata-plugin-cups
61 -Architecture: any
62 -Depends: cups,
63 - netdata (>= ${source:Version})
64 -Description: The Common Unix Printing System plugin for metrics collection from cupsd
65 -
66 -Package: netdata-plugin-freeipmi
67 -Architecture: any
68 -Depends: freeipmi,
69 - netdata (= ${source:Version})
70 -Description: FreeIPMI - The Intelligent Platform Management System.
71 - The IPMI specification defines a set of interfaces for platform management.
72 - It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
73 - are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).
contrib/debian/netdata.default
+4 -2
@@ -1,5 +1,7 @@
1 # Extra arguments to pass to netdata
2 #
3 #EXTRA_OPTS=""
4 -#uncomment following line if you are building a wheezy-package
5 -#EXTRA_OPTS="-P /var/run/netdata.pid"
4 +#
5 +# Location of pidfile. Only used on SysV init based systems.
6 +#
7 +#PIDFILE="/var/run/netdata/netdata.pid"
contrib/debian/netdata.init
+1 -1
@@ -31,7 +31,7 @@ test -f $DAEMON || exit 0
31
32 case "$1" in
33 start) log_daemon_msg "Starting real-time system monitoring" "netdata"
34 - start_daemon -p $PIDFILE $DAEMON $EXTRA_OPTS
34 + start_daemon -p $PIDFILE $DAEMON -P $PIDFILE $EXTRA_OPTS
35 log_end_msg $?
36 ;;
37 stop) log_daemon_msg "Stopping real-time system monitoring" "netdata"