3 # Example init.d script with LSB support.
5 # Please read this init.d carefully and modify the sections to
6 # adjust it to the program you want to run.
8 # Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
9 # Copyright (c) 2009 Nicira Networks, Inc.
11 # This is free software; you may redistribute it and/or modify
12 # it under the terms of the GNU General Public License as
13 # published by the Free Software Foundation; either version 2,
14 # or (at your option) any later version.
16 # This is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License with
22 # the Debian operating system, in /usr/share/common-licenses/GPL; if
23 # not, write to the Free Software Foundation, Inc., 59 Temple Place,
24 # Suite 330, Boston, MA 02111-1307 USA
27 # Provides: corekeeper
28 # Required-Start: $remote_fs
29 # Required-Stop: $remote_fs
30 # Should-Start: $syslog
32 # Default-Start: 2 3 4 5
34 # Short-Description: Configure core file dump location
37 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
39 . /lib/lsb/init-functions
45 log_daemon_msg "Initializing core dump location..."
46 if echo "/var/log/core/core.%e.%t.%p" > /proc/sys/kernel/core_pattern
48 log_progress_msg "success"
56 stop|restart|force-reload|status|reload)
60 N=/etc/init.d/corekeeper
61 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2