Commit Graph

76 Commits (933a14e16f0232c5ec883644b7363a59da7bcd90)

Author SHA1 Message Date
Brandon Pfeifer 933a14e16f
chore: fix package permissions (1.10) (#24304)
* chore: replace "package builder" shell/docker implemention with python

* chore: remove unused packaging files
2023-06-26 12:23:31 -04:00
Brandon Pfeifer adbf24562d
feat: use new changelogger (#23509)
This also regenerates CHANGELOG_frozen.md (from version 1.8.0 - 1.9.7)
so that it is compatible with the new changelogger.
2022-07-01 12:37:55 -04:00
Sam Arnold 312a3a7a69
chore: finalize changelog automation (#22770) 2021-10-27 08:35:32 -04:00
Sam Arnold 0c0c8de001
chore: changelog automation (#22758) 2021-10-26 09:52:11 -04:00
Dane Strandboge 8b38d0e2bf
build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
Cody Shepherd 380dade9b3
build: automate changelog (#22522) 2021-09-21 08:30:50 -07:00
Cody Shepherd f71ab14888
fix: systemd service -- handle https, 40x, and block indefinitely (#22090)
* fix: systemd service --handle 40x and block indefinitely

* chore: update changelog
2021-08-10 14:35:12 -07:00
Cody Shepherd 8f8e9209c6
fix: systemd-start script should be executable by group and others (#21992)
* fix: systemd unit should block on startup until http endpoint is ready

* fix: systemd-start script should be executable by group and others

* chore: update changelog
2021-08-03 08:22:11 -07:00
Cody Shepherd d0772d7d67
fix: systemd unit should block on startup until http endpoint is ready (#21895)
* fix: systemd unit should block on startup until http endpoint is ready

* chore: update changelog
2021-07-20 11:08:03 -07:00
Daniel Moran 6dd2d58163
build: fix/add `go generate` calls for flux-related `.proto` files (#21103) 2021-03-30 17:14:15 -04:00
Lorenzo Affetti 83b1f48112 fix(package): make rpm verify pass after installation 2019-04-30 12:10:40 +02:00
Gunnar Aasen 0350557c16 Use Systemd for Amazon Linux 2 packages 2019-02-06 16:28:48 -08:00
Mark Rushakoff c2841c8342 Use correct variable style in influxdb.service
From the systemd.service docs:

Use "${FOO}" as part of a word, or as a word of its own, on the command
line, in which case it will be replaced by the value of the environment
variable including all whitespace it contains, resulting in a single
argument. Use "$FOO" as a separate word on the command line, in which
case it will be replaced by the value of the environment variable split
at whitespace, resulting in zero or more arguments.
2017-10-03 11:15:22 -07:00
Mark Rushakoff e623b1b16b Use `command` instead of `which`
Some systems don't have `which` installed.

Also fix some whitespace issues.

Fixes #8900.
2017-10-02 11:49:08 -07:00
Ross McDonald f7c686dbef Merge pull request #7536 from ast-systemtechnik/skladd-patch-init.sh
make init.sh compatible with busybox
2016-12-01 14:08:10 -06:00
Chris Casey 8e720a3308 fix chuid argument order 2016-11-10 16:31:50 -06:00
Stephan Klatt 35d2fb6e01 init.sh: busybox kill compatible signal names
busybox's kill does not accept -s SIGTERM, but only -s TERM
2016-10-28 15:30:48 +02:00
Stephan Klatt 9a880f6144 init.sh: initialize counter variable in stop()
fixes init.sh stop error on busybox systems: #7535
2016-10-28 13:46:13 +02:00
Ross McDonald c769639e88 Packaging fixes:
* Removes sysvinit-tools as an RPM package dependency.

* Update init script to not rely on sysvinit utils for backwards
  compatibility.

* Minor overall improvements to init script (improved error messages,
  comments, check for root privileges).

* Adds SLES support to post-installation script.
2016-07-12 09:22:57 -05:00
Jonathan A. Sternberg 55a58aaaca Remove systemd output redirection
Let systemd handle the output so the journal can be used. This also
let's the user configure if the journal stores the output of this
service to a file instead of setting the location.

Fixes #6824.
2016-06-17 13:00:00 -05:00
kevgrig f49c4f18a0 Update influxdb.service
Start influxdb.service after the network is up; otherwise, there's a chance after reboot that influxdb fails to bind and then doesn't start. For more, see (http://unix.stackexchange.com/a/126146)[http://unix.stackexchange.com/a/126146]
2016-04-30 10:36:40 -07:00
Ross McDonald 98789addc4 Modified tests to use '-n' over '! -z', and added quotes to pids to ensure strings. 2016-03-30 14:25:42 -05:00
Ross McDonald e52201ed34 Moved different init commands into their own functions. 2016-03-30 10:11:24 -05:00
Valeriy Simonov e70d8aaa25 Wait for process termination on restart
Fixing "bind: address already in use" error
2016-03-23 10:37:39 +05:00
Jason Wilder db5d715846 Merge pull request #5536 from mmattioli/cleanup
Cleanup
2016-02-08 08:57:44 -07:00
Ross McDonald 11418fefba Added support for Amazon Linux to installation scripts. 2016-02-04 09:17:59 -06:00
Michael Mattioli 658ffc9084 Updated docs link in .service
The link to the InfluxDB docs was stale,
simply updates it pointing to the current
URL which contains the docs for InfluxDB
2016-02-03 21:35:55 -05:00
Alexandre Derumier 487756fa46 postinstall script : use /etc/debian_version for debian/ubuntu detection
currently we use /etc/lsb-release to detect debian,

but this file is only present on ubuntu.

/etc/debian_version is installed by default by debian and ubuntu
2016-01-14 15:22:48 +01:00
Ross McDonald 560f691096 A few updates:
- Re-enabling support for ARM builds in `build.py`.
- Improved `build.py`'s iteration and package version.
- Fixed minor bug with logrotate file path in `build.py`.
- Improved installation pre and post install/uninstall scripts by adding distribution-specific logic to account for quirks between the different package managers.
- Added post-install as post-trans script for RPM builds due to the order of RPM upgrade commands (issue where init scripts were removed when upgrading).
- Added explicit backup to pre-install script to ensure legacy configuration survive an upgrade.
2016-01-07 15:03:43 -06:00
Mi! d721bc5eee Fixed syntax Error in influxdb.service
Updated, removed erroneous spaces for stdout and stderr redirect ```2>>$STDERR``` which resulted in a broken forward.
2015-12-15 10:51:11 +01:00
Ross McDonald df46eeb48f Fixed issue where pre-install script would attempt to copy to a non-existent directory. 2015-11-17 15:29:51 -06:00
Ross McDonald b53ebe9d5d Backporting changes from build.py to package.sh. Also fixes a few miscellaneous package permissions issues that Debian's lintian complained about. 2015-11-16 13:19:54 -06:00
Ross McDonald bd186195db Restructured filesystem hierarchy, and updated pre/post installation scripts to ease upgrade progress. Also adding first iteration of new build script (build.py).
New package filesystem hierarchy:
	 - /var/lib/influxdb => Data directories
	 - /usr/lib/influxdb => Scripts and other miscellaneous files
	 - /etc/influxdb => Configuration
	 - /usr/bin/ => Where InfluxDB binaries will live
2015-11-12 10:42:41 -06:00
Chris Dickson a60f90b082 specify shell on pidfile touch on service start
resolves "/var/run/influxdb/influxd.pid not writable, check permissions [ FAILED ]"
error on service restart  when influxdb user shell is set to /bin/false
2015-10-01 15:30:14 -05:00
Cameron Sparr a8c7e2ac04 Install & update systemd influxdb service
Closes #3989
Closes #4047
2015-09-09 10:00:48 -06:00
Philip O'Toole 206ddae286 Add basic logrotate file 2015-09-08 08:50:47 -07:00
Philip O'Toole d1e6dced47 Use actual kill command, not shell alias
https://www.freebsd.org/doc/handbook/basics-processes.html

[ci skip]
2015-09-05 00:18:54 -07:00
Philip O'Toole 54c832f4a8 Correct shutdown in init.d script
This was already reviewed by @jwilder, but merged incorrectly.
2015-09-04 23:49:47 -07:00
Philip O'Toole b5df129c80 When stopping service, wait until actually exited
Fixes issue #3548.
2015-09-04 14:45:13 -07:00
Swann Croiset 421fc875ca Add shell option to start the daemon on CentOS
Unless a valid shell for the user running influxdb, the command su fails with
the error:
 This account is currently not available.

The user shouldn't have a valid shell although the package creates influxdb
user with /bin/bash
2015-08-27 15:32:05 +02:00
KoeSystems 64dd2941bd Fix issue #3803 2015-08-24 17:22:21 +01:00
KoeSystems 88307bf2f3 Clarify script changing variables to capital letter.
Allow to overwrite all the variables with environment variables.
Check if config file exists and it's readable.
Check if pidfile is writable.
2015-08-13 23:03:23 +01:00
Miguel Fonseca 7f98b5419b Avoid backticks and use $() instead. 2015-06-25 19:07:42 +01:00
Miguel Fonseca b282e76f59 Fix run as user. 2015-06-25 19:05:59 +01:00
Miguel Fonseca c4ce20de08 Set proper return codes. 2015-06-25 14:11:51 +01:00
Paul Dix ce5e0f6bd6 Merge pull request #2478 from sztanpet/systemd-support
add the most basics of systemd support:  influxdb.service
2015-05-28 11:24:18 -04:00
Haim Daniel 8ef92ba555 init.sh: double start considers success
Signed-off-by: Haim Daniel <haimdaniel@gmail.com>
2015-05-11 20:27:38 +03:00
Peter SZTANOJEV ec4d2ecc92 add the most basics of systemd support: influxdb.service
The added influxdb.service is the direct functional equivalent of
the init.sh script where appropriate, some features are missing
like redirecting stdout/stderr to files, but that can be done by
the syslog daemon a layer up anyway.
For aditional support influxdb should support Type=notify for
notifying systemd about when it has finished starting up, and for
watchdog functionality.
2015-05-02 14:25:22 +02:00
ben hockey 4e6c384f82 ensure directory of pidfile exists after a restart 2015-04-15 16:47:20 -05:00
Jason Wilder 5484b0e9ea Allow passing command-line options to init script
Command-line options can be set in /etc/default/influxdb using
the INFLUXD_OPTS env var.
2015-04-08 20:49:58 -06:00