1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-08 12:28:04 -05:00

QPKG_SERVICE_PROGRAM must be a unique name (least it overrides other startup scripts in /etc/init.d)

This commit is contained in:
Reinhard Pointner 2018-07-10 12:47:45 +07:00
parent f6c908f427
commit 8682fc084e
2 changed files with 8 additions and 7 deletions

View File

@ -17,7 +17,7 @@ QPKG_SUMMARY="@{package.description}"
QPKG_RC_NUM="452"
# Init-script used to control the start and stop of the installed application.
QPKG_SERVICE_PROGRAM="start-stop-status.sh"
QPKG_SERVICE_PROGRAM="filebot-service.sh"
# Minimum QTS version requirement
QTS_MINI_VERSION="4.1.0"

View File

@ -12,18 +12,19 @@ case "$1" in
exit 1
fi
# create /usr/bin/[package] program link
ln -sf "$QPKG_ROOT/filebot.sh" "/usr/bin/filebot"
;;
/bin/ln -sf "$QPKG_ROOT/filebot.sh" "/usr/bin/filebot"
/bin/ln -sf "$QPKG_ROOT" "/opt/filebot"
;;
stop)
rm "/usr/bin/filebot"
;;
rm -rf "/usr/bin/filebot"
rm -rf "/opt/filebot"
;;
restart)
$0 stop
$0 start
;;
;;
*)
echo "Usage: $0 {start|stop|restart}"