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>
10 # This is free software; you may redistribute it and/or modify
11 # it under the terms of the GNU General Public License as
12 # published by the Free Software Foundation; either version 2,
13 # or (at your option) any later version.
15 # This is distributed in the hope that it will be useful, but
16 # WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License with
21 # the Debian operating system, in /usr/share/common-licenses/GPL; if
22 # not, write to the Free Software Foundation, Inc., 59 Temple Place,
23 # Suite 330, Boston, MA 02111-1307 USA
26 # Provides: corekeeper
29 # Should-Start: $syslog
31 # Default-Start: 2 3 4 5
33 # Short-Description: Configure core file dump location
36 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
38 . /lib/lsb/init-functions
44 log_daemon_msg "Initializing core dump location..."
45 if echo "/var/log/core/core.%e.%t" > /proc/sys/kernel/core_pattern
47 log_progress_msg "success"
55 stop|restart|force-reload|status|reload)
60 echo "Usage: $N {start|stop|restart|force-reload|status}" >&2