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
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
John Shahid
86a28be428
Fix #670 . Redirect output to /dev/null
2014-06-21 16:18:15 -04:00
Dieter Plaetinck
fda4194ac0
follow symlinks
...
for people that have a symlink, such as /opt/influxdb/shared/data as a link to a datadir on a different volume, this makes sure the ownership is reset there too.
otherwise you can get influxdb to panic due to incorrect permissions (happened to me)
2014-06-16 14:41:27 -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
bcb0da5f54
fix #141 . Include the benchmark binary in the package
2014-01-09 18:01:05 -05:00