Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions general/package/majestic/files/S95majestic
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
#!/bin/sh

DAEMON="majestic"
PIDFILE="/var/run/$DAEMON.pid"
DAEMON="/usr/bin/majestic"
Comment thread
qodo-free-for-open-source-projects[bot] marked this conversation as resolved.
DAEMON_ARGS="-s"

start() {
echo -n "Starting $DAEMON: "
start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS
start-stop-daemon -b -S -q -x "$DAEMON" -- $DAEMON_ARGS
if [ $? -eq 0 ]; then
echo "OK"
else
echo "FAIL"
echo "FAIL (already running)"
Comment thread
qodo-free-for-open-source-projects[bot] marked this conversation as resolved.
Outdated
fi
}

stop() {
echo -n "Stopping $DAEMON: "
start-stop-daemon -K -q -p "$PIDFILE"
start-stop-daemon -K -q -x "$DAEMON"
if [ $? -eq 0 ]; then
rm -f "$PIDFILE"
echo "OK"
else
echo "FAIL"
Expand Down
Loading