Fixed folder detection in init script
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 6 Jan 2014 09:49:08 +0000 (09:49 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Mon, 6 Jan 2014 09:49:08 +0000 (09:49 +0000)
debian/oomailing.init

index 347c22dbf92e401a07dcfb434f9f3a6860fa2f11..7fe3215d9f70977d8c5a1a16f9547bd0ab4ceaa6 100755 (executable)
 ### END INIT INFO
 
 PATH=/bin:/usr/bin:/sbin:/usr/sbin
-binpath=/usr/bin/soffice
+binpath=/usr/bin/libreoffice
 binpathsub=/usr/lib/libreoffice/program/soffice.bin
 param="--nologo --nodefault --invisible --accept=socket,host=localhost,port=2002;urp;"
 
+. /lib/lsb/init-functions
+
 test -f $binpath || exit 0
 
 case "$1" in
@@ -35,7 +37,7 @@ case "$1" in
     echo "."
     ;;
   *)
-    echo "Usage: /etc/init.d/xvfb {start|stop|restart|force-reload}"
+    echo "Usage: /etc/init.d/oomailing {start|stop|restart|force-reload}"
     exit 1
 esac