Age | Commit message (Collapse) | Author |
|
for. (#14544)
* Move systemd-specific system files to their own directory.
* Move non-systemd init scripts to individual subdirectories.
* Move cron files to their own directory.
* Move logrotate config to it’s own directory.
* Fix typos in Makefile.am.
* Fix Debian package builds.
* Fixed issues reported by @andrewm4894.
|
|
* Properly handle service dependencies in OpenRC init script.
This removes the `NETDATA_START_AFTER_SERVICES` variable from our OpenRC
script. This variable made the script somewhat harder to read, and did
not actually provide any additional functionality (users can simply
define appropriate `rc_after` values in `/etc/conf.d/netdata` to achieve
exactly the same net effect)..
* Provide more concrete descriptions for OpenRC commands.
Updates the command descriptions in the OpenRC init script to properly
describe exactly what they are doing, instead of going with generic and
rather ambiguous names.
* Allow use of netdatacli for additional commands in OpenRC init script.
This makes life simpler for users who want to run the agent under
OpenRC’s native process supervision, which does not allow use of
`start-stop-daemon` commands in the init script.
Existing behavior (using `start-stop-daemon`) is preserved as the
default.
* Fix background command handling.
THe `pidfile` variable should only be set if the agent is not being run
under `supervise-daemon`.
* COnsolidate code from additional commands, and handle supervise-daemon correctly.
* Fix typo.
* Remove pointless `require_files` line.
We don’t actually do anything in the script that cares about the config
file existing, and the agent starts fine without it, so we should not be
requiring it to be present.
|
|
* Fix runtime directory ownership when installed as non-root user.
Followup to #13870.
* Fix typo.
|
|
check should be in start_pre() as its only needed when starting the service
as opposed to depends() which can be called anytime to evaluate service dependencies
|
|
|
|
|
|
This tags all the files that I can clearly identify as being part of
Netdata and not a local copy of a third party package that we're
redistributing.
|
|
Quote variables where able.
Switch to a more posix double 'and'.
Remove unused variables.
The exit timeout was fixed.
We also remove fetching the configuration from the init script
(it should not live in it).
Further we define reload rotate and save commands to prevent the need to
restart all the time.
|
|
|
|
Fixes #2826
|
|
|
|
|
|
Discovered due to a Gentoo QA notice:
```text
* QA Notice: #!/sbin/runscript is deprecated, use #!/sbin/openrc-run instead:
* //etc/init.d/netdata
```
|
|
|
|
Standardize command line options:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
Make command line options maintainable:
- Use getopts for parsing.
- Define options in a list of structs.
- Compute optstring and help message from the struct.
Changed command line options are marked deprecated. We can remove them in the
next major release.
|
|
|
|
|
|
|
|
commit 950f04df117bf246cfa9a2fa99bf12a64d6bd0a4
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 23:47:06 2016 +0300
dont keep the pidfd open
commit bd45505d0177703940b2393a5e36b3e80b912ff1
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 23:33:18 2016 +0300
dont unlink pidfile at start
commit 4afd30e81d3cd70400162c7603b659fd35160c8b
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 23:30:47 2016 +0300
close pidfile then unlink
commit faf66f4f5f39bda8d0b5e947afbdb8cd1ac505be
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 19:38:49 2016 +0300
fix to keep close the file if it has been successfully chwoned
commit 0af1e73e6db3b681e8303ee394fc2ac003db6e67
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 19:35:31 2016 +0300
chown pidfile only when dropping privileges; do not keep the pidfile open when not dropping privileges
commit 550c9f8e9757f5a5767d11764a80f7736c197b37
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 19:15:32 2016 +0300
do not chown pidfile
commit ca808d2231ed175397408ea436a50642e10cd281
Author: Costa Tsaousis (ktsaou) <costa@tsaousis.gr>
Date: Sun Apr 3 18:57:30 2016 +0300
added command line parameter -pidfile; the pidfile is only generated if this parameter is passed; #151 #156
|
|
* Properly replace install destination at buildtime in init script
* Ebuild:
- Add note about KSM
- Drop KEYWORDS in live ebuild
- Strip down calls which equal default
- Set DESCRIPTION to GH slogan
- Rename USE zlib to compression
- Drop additional die
- Allow to change NETDATA_USER in make.conf
* Clean openrc init script
Signed-off-by: Justin Lecher <jlec@gentoo.org>
|