Commit Graph

33 Commits (a74f7e32aa1b3fcff2fe35b4ccaeb8109b5d52ba)

Author SHA1 Message Date
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
John Shahid 03361334ff add some convenience scripts. 2013-10-26 13:14:57 -04:00