Update S95majestic (#1516)

pull/1520/head
Francois Lettock 2024-08-11 14:49:37 +02:00 committed by GitHub
parent 914aceb2b0
commit 8ef0aedcb6
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"
;;