Update S95majestic

pull/1516/head
Francois Lettock 2024-08-08 21:40:58 +02:00 committed by GitHub
parent 8172943034
commit 72ccd84b82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 6 deletions

View File

@ -5,12 +5,10 @@ DAEMON="majestic"
PIDFILE="/var/run/$DAEMON.pid"
MAJESTIC_ARGS="-s"
debug() {
ulimit -c unlimited
echo "/tmp/core.%e.%h.%t" > /proc/sys/kernel/core_pattern
}
start() {
ulimit -c unlimited
echo "/tmp/majestic.core" > /proc/sys/kernel/core_pattern
printf "Starting $DAEMON: "
start-stop-daemon -b -S -m -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" -- $MAJESTIC_ARGS
if [ $? = 0 ]; then
@ -32,7 +30,7 @@ stop() {
}
case "$1" in
start|stop|debug)
start|stop)
"$1"
;;