Ernie Hershey
b68339f58d
SERVER-23830 Remove hardcoded pidfile path in init script header
...
This is a small change, the only affect of which is that systemd's
sysvinit compatibility implementation stops assuming this value for
the pidfile on rhel 7 and detects the pid automatically. For SUSE,
there's a separate init.d script. For non-systemd systems, the init
script parses mongod.conf for the pidfile.
2016-07-13 12:45:09 -04:00
Sam Kleinman
985e2a0be9
SERVER-20930 SERVER-20404 : clarify sysconfig and default config override
2016-02-09 13:17:41 -05:00
Paschalis Korosoglou
9fe07e29d8
SERVER-21209 allow comments in the same line as pidfilepath
...
Signed-off-by: Ramon Fernandez <ramon@mongodb.com>
Closes #1041
2015-11-04 15:02:13 -05:00
Sam Kleinman
a89a8c59dc
SERVER-18977 : remove pidfiles only when process does not exist
2015-06-25 17:18:47 -04:00
Ernie Hershey
47f7671096
SERVER-17780 Update init script process ulimit to match recommendations
2015-03-30 12:50:25 -04:00
Ernie Hershey
400dabd208
SERVER-17337 Filter quote characters from RPM init script PIDFILEPATH and remove unused DBPATH
2015-03-25 13:41:17 -04:00
Ernie Hershey
aabf5df5e8
SERVER-16731 Remove unused DBPATH init script variable
2015-03-25 13:41:17 -04:00
Andrea Maria Piana
e82c06607b
SERVER-16720 updated awk regexp to support inline pidFilePath and dbPath syntax
...
Closes #899
Signed-off-by: Benety Goh <benety@mongodb.com>
2015-01-05 14:41:19 -05:00
Jiri Tyr
f96a473723
Prevent init.d script to fail when pidfilepath isn't configured
...
This change moves the PIDFILEPATH definition behind the sourcing of the
sysconfig file to prevent the init.d script to fail when there is no
pidfilepath defined in the config file. It is still possible to define
it in the sysconfig file.
Closes #895
Signed-off-by: Benety Goh <benety@mongodb.com>
2015-01-05 11:09:52 -05:00
Ernie Hershey
6105f06402
SERVER-16081 add --check to init script daemon command
2014-12-23 17:34:46 -05:00
Ernie Hershey
65be70d436
SERVER-15114 Remove misleading init script comment
2014-09-02 16:40:03 -04:00
Benety Goh
a8d7c7b855
SERVER-9253 added pid_file argument to mongo_killproc. New usage: mongo_killproc pid_file procname
2014-08-20 15:09:46 -04:00
Alexis Midon
fb1e82a243
SERVER-9253 fixed init.d/mongod so that it does not sleep for 5 minutes unnecessarily.
...
In some version of Linux, killproc() provided in /etc/init.d/functions has a bug
where it will sleep the full duration of the delay (-d).
Closes #411
Signed-off-by: Benety Goh <benety@mongodb.com>
2014-08-20 12:06:34 -04:00
Markus W. Mahlberg
50ca596ace
SERVER-14679 fixed init.d script to create directory for pid file
...
Startup scripts not fit for CentOS 7 / RHEL 7
Default location for pid file is under /var/run/mongodb. /var/run can be mounted
on a temporary filesystem so the pid file directory is
not guaranteed to persist across reboots.
Closes #723
Signed-off-by: Benety Goh <benety@mongodb.com>
2014-07-31 11:54:33 -04:00
Ernie Hershey
0b9d98ce36
SERVER-14247 Use PIDFILEPATH variable instead of missing PIDFILE
2014-06-13 10:03:39 -04:00
Ernie Hershey
5368b37512
SERVER-13595 Adjust rpm init script awk line to read new yaml config file format
2014-05-13 17:55:10 -04:00
Ernie Hershey
8298b133ed
SERVER-13016 Change rpm username from mongodb to mongod
2014-03-04 16:23:13 -05:00
Ernie Hershey
8e310d6978
SERVER-9183 redirect startup output to /dev/null in redhat init script
2013-12-11 14:24:00 -05:00
Ernie Hershey
1b4c5d4f2c
SERVER-10931 set ulimits in init scripts to match documentation
...
This sets resource limits across all Linux packages to match our
recommended settings -
http://docs.mongodb.org/manual/reference/ulimit/#recommended-settings
2013-11-19 16:02:08 -05:00
Ernie Hershey
ba2dde72a0
SERVER-7708 Use pid file under /var/run/mongodb in rpm
2013-10-12 18:20:01 -04:00
Ernie Hershey
ef582b64cb
SERVER-3579 Change redhat username and group from mongod to mongodb
2013-10-04 13:25:27 -04:00
Ernie Hershey
63e2213755
SERVER-9252 use [[:blank:]] instead of \s
2013-09-11 16:26:59 -04:00
Alexis Midon
5b762d52cc
SERVER-9252 use the correct config key for pid file
2013-09-11 16:20:16 -04:00
Mike Fiedler
04de9098bb
SERVER-3574 updating init scripts for numa
2012-02-28 12:10:49 -05:00
Mike Fiedler
3829adb0ec
SERVER-2267 correcting the pidfile usage on RPM-based packages
2012-02-17 09:31:04 -08:00
Richard Kreuter
d0027e0028
Do a better job stopping mongod from RPM init script. SERVER-3824
2011-12-01 18:16:58 -05:00
Richard Kreuter
95a7bcb172
SERVER-3142, part 1
...
Kind of a hack, for compatibility w/1.8 (and because I don't have
time to test the new --shutdown flag everywhere).
2011-06-23 17:41:59 -04:00
Richard Kreuter
d039110cb7
Fix typo in RPM init script.
2010-12-15 13:23:11 -05:00
Richard Kreuter
892a22331a
RH initscript "status" action: exit non-zero if mongod isn't there. SERVER-1895
2010-11-02 11:15:57 -04:00
Richard Kreuter
7d76c5e6b3
Aesthetic change to old RedHat sysv init script.
2010-06-01 16:16:02 -04:00
Richard Kreuter
5476c8a13e
Fix typo in rpm init script. SERVER-575
2010-03-16 15:13:57 -04:00
Richard Kreuter
2b7eb10215
Improve RPM packaging, init scripts. SERVER-575, SERVER-576 .
2010-03-16 10:06:36 -04:00
Eliot Horowitz
39b64ce9f3
initial stab at rpm files SERVER-396
2009-12-03 14:20:35 -05:00