Commit Graph

51 Commits (36df687aa824d026e2ffcfa9e767b0b576729842)

Author SHA1 Message Date
Daniel Moran c99eaee5ec
fix: ensure init.d-style install sees our default environment variables (#20349) 2020-12-15 18:15:00 -08:00
Gershon Shif af0c328095
chore(packaging): build rpm and deb packages (#19567)
- Update CIrcleCI configuration to start release process on an RC build
- Update .goreleaser.yml:
   - Start building armel and armhf binaries and rpm and debian packages.
   - Generate sha256 checksum file.
- launcher.go: do not use `max` module to escape integeroverflow problem for armel and armhf builds
- Start using `v0.142.0` of goreleaser
- Added pre and post install/uninstall scripts for rpm amd deb packages
2020-09-16 12:36:44 -07:00
Mark Rushakoff f2898d1992 Wipe out workspace in preparation for v2 merge
"Knock knock."

"Who's there?"

"InfluxDB Veet."

...
2019-01-11 10:38:50 -08: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
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
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
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
Ben Johnson 9e134d5ee9 Update init script to append STDERR to log. 2015-04-03 14:27:27 -06:00
Philip O'Toole 9b4b5dd40a Fix up paths for run and data 2015-04-03 12:52:37 -07:00
Philip O'Toole 8970efeac2 Direct STDERR and STDOUR and remove obsolete 'run'
This code path was not modified as needed during recent init.d script
work.
2015-03-29 16:37:31 -07:00
Philip O'Toole 2305b365fe Allow STDOUT and STDERR to be set 2015-03-25 15:54:25 -07:00
Philip O'Toole 1f3b7c66a0 Allow init.d script to get influxd version 2015-03-23 23:42:58 -07:00
Philip O'Toole 1ce0826286 Set execute bit on init.sh script 2015-02-11 08:24:44 -08:00
Philip O'Toole 81fe1912a8 Use start-stop-daemon to launch, if available
This allows changing to the influxdb user if necessary.
2015-01-29 13:20:38 -08:00
Philip O'Toole a2b09ca966 Start influxd with up-to-date launch params
Simplify for now, and more complexitity can come later if needed.
2015-01-26 18:45:33 -08:00
Philip O'Toole 48fdb239c8 Rename config file during packaging 2015-01-26 17:33:14 -08:00
Philip O'Toole abe89e1552 init.d script does not support 'reload' 2015-01-22 15:02:20 -08:00
Philip O'Toole 71fb61f701 Add first version of init.d script 2015-01-22 14:29:11 -08:00
Ben Johnson 7db0e15799 Refactoring into root. 2014-10-21 23:32:19 -06:00
Spencer Owen 3f659f43eb Changes init script exit code to conform to lab standards 2014-10-10 12:16:12 -06:00
John Shahid f2a85f2b03 Set the ulimit in the init script with a way to override the limit
Fix #916
2014-10-07 13:27:24 -04:00
Martin Englund 5e1411a1f3 extract init config file into a variable 2014-06-05 11:18:22 -07:00
John Shahid d40ed03272 No redirect to log.txt and log instead of writing to stderr 2014-05-30 18:13:17 -04:00
John Shahid af98ecaf27 Fix #529. Don't run influxdb as root 2014-05-20 14:22:26 -04:00
John Shahid 9c8204b64d Fix #460. Don't start influxdb automatically after installing from pkg 2014-05-20 14:22:25 -04:00
John Shahid 8d75e0dfe6 fix the name printed in the startup script 2013-12-12 16:36:25 -05:00
John Shahid 69544aa6bf fix #40. Replace json with toml for configuration 2013-12-11 14:13:42 -05:00
John Shahid 74e6129865 fix #23. init scripts were broken for redhat-based ditros. 2013-11-07 17:10:03 -05:00
John Shahid 1a445582a9 make pidfile optional. 2013-10-26 13:27:17 -04:00