(Feb 02, 2016, 12:55 PM)FYI - I am not very linux savy :) Wrote: I have answered inline below, hope it's ok.
MikeCan you show the output of /etc/default/htpcmanager
Code:
cat /etc/default/htpcmanager
root@raspberrypi:~# cat /etc/default/htpcmanager
cat: /etc/default/htpcmanager: No such file or directory
And the output of /etc/init.d/htpcmanager
Code:
cat /etc/init.d/htpcmanager
root@raspberrypi:~# cat /etc/init.d/htpcmanager
#! /bin/sh
### BEGIN INIT INFO
# Provides: HTPC-Manager application instance
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of HTPC-Manager
# Description: starts instance of HTPC-Manager using start-stop-daemon
### END INIT INFO
############### EDIT ME ##################
# path to app
APP_PATH=/opt/HTPCManager
# path to python bin
DAEMON=/usr/bin/python
# startup args
DAEMON_OPTS="Htpc.py"
# script name
NAME=htpc
# app name
DESC=HTPC-Manager
# user
RUN_AS=root
PID_FILE=/var/run/htpcmanager.pid
############### END EDIT ME ##################
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo "Starting $DESC"
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
;;
stop)
echo "Stopping $DESC"
start-stop-daemon --stop --pidfile $PID_FILE
;;
restart|force-reload)
echo "Restarting $DESC"
start-stop-daemon --stop --pidfile $PID_FILE
sleep 15
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --make-pidfile --exec $DAEMON -- $DAEMON_OPTS
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
And the contents of the init.d folder, if you have the time check though the init.d script to see if one of the other init.d script has htpcmanager as the application name.
Code:
ls -lh /etc/init.d/
root@raspberrypi:~# ls -lh /etc/init.d/
total 254K
-rwxr-xr-x 1 root root 5.3K Oct 18 2013 alsa-utils
-rwxr-xr-x 1 root root 9.9K Oct 24 09:37 apache2
-rwxr-xr-x 1 root root 1.3K Oct 15 2012 bootlogs
-rwxr-xr-x 1 root root 1.3K Apr 6 2015 bootmisc.sh
-rwxr-xr-x 1 root root 3.5K Sep 9 2014 cgmanager
-rwxr-xr-x 1 root root 3.3K Sep 9 2014 cgproxy
-rwxr-xr-x 1 root root 3.8K Apr 6 2015 checkfs.sh
-rwxr-xr-x 1 root root 1.1K Apr 6 2015 checkroot-bootclean.sh
-rwxr-xr-x 1 root root 9.1K Apr 6 2015 checkroot.sh
-rwxr-xr-x 1 root root 1.4K Dec 9 2011 console-setup
-rwxr-xr-x 1 root root 3.8K Jan 30 19:16 couchpotato
-rwxr-xr-x 1 root root 3.0K Nov 5 2014 cron
-rwxr-xr-x 1 root root 2.8K May 14 2015 dbus
-rwxr-xr-x 1 root root 6.5K Nov 21 07:04 exim4
-rwxr-xr-x 1 root root 824 Sep 5 2014 fake-hwclock
-rwxr-xr-x 1 root root 1.4K Apr 6 2015 halt
-rwxr-xr-x 1 root root 11K Mar 5 2015 hdparm
-rwxr-xr-x 1 root root 5.7K Feb 1 13:51 headphones
-rwxr-xr-x 1 root root 1.4K Oct 15 2012 hostname.sh
-rwxr-xr-x 1 root root 1.4K Feb 1 14:03 htpcmanager
-rwxr-xr-x 1 root root 3.9K Mar 29 2015 hwclock.sh
-rwxr-xr-x 1 root root 1.6K Oct 1 2012 keyboard-setup
-rwxr-xr-x 1 root root 1.3K Apr 6 2015 killprocs
-rwxr-xr-x 1 root root 2.0K May 20 2012 kmod
-rwxr-xr-x 1 root root 4.5K Dec 27 06:12 kodi
-rwxr-xr-x 1 root root 4.0K Jan 31 09:36 lazylibrarian
-rwxr-xr-x 1 root root 1.6K Jan 31 08:21 minidlna
-rwxr-xr-x 1 root root 2.2K Jul 14 2014 minissdpd
-rwxr-xr-x 1 root root 2.7K Sep 12 16:34 monit
-rwxr-xr-x 1 root root 995 Oct 15 2012 motd
-rwxr-xr-x 1 root root 677 Apr 6 2015 mountall-bootclean.sh
-rwxr-xr-x 1 root root 2.1K Apr 6 2015 mountall.sh
-rwxr-xr-x 1 root root 1.5K Apr 6 2015 mountdevsubfs.sh
-rwxr-xr-x 1 root root 1.6K Apr 6 2015 mountkernfs.sh
-rwxr-xr-x 1 root root 685 Apr 6 2015 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root 2.4K Apr 6 2015 mountnfs.sh
-rwxr-xr-x 1 root root 4.7K Dec 14 2014 networking
-rwxr-xr-x 1 root root 5.6K Aug 13 2014 nfs-common
-rwxr-xr-x 1 root root 4.8K Aug 18 2014 nfs-kernel-server
-rwxr-xr-x 1 root root 2.0K Mar 7 2015 nmbd
-rwxr-xr-x 1 root root 1.8K Feb 4 2015 ntp
-rwxr-xr-x 1 root root 1.4K Nov 17 2014 plymouth
-rwxr-xr-x 1 root root 752 Nov 17 2014 plymouth-log
-rwxr-xr-x 1 root root 7.4K Nov 9 2014 postfix
-rwxr-xr-x 1 root root 1.2K Mar 6 2015 procps
-rwxr-xr-x 1 root root 1.3K Oct 19 12:58 raspi-config
-rwxr-xr-x 1 root root 6.1K Apr 6 2015 rc
-rwxr-xr-x 1 root root 820 Apr 6 2015 rc.local
-rwxr-xr-x 1 root root 117 Apr 6 2015 rcS
-rw-r--r-- 1 root root 2.4K Apr 6 2015 README
-rwxr-xr-x 1 root root 661 Apr 6 2015 reboot
-rwxr-xr-x 1 root root 1.1K Apr 6 2015 rmnologin
-rwxr-xr-x 1 root root 2.5K Sep 20 18:53 rpcbind
-rwxrwxr-x 1 root root 1.6K Jan 6 2015 rpimonitor
-rwxr-xr-x 1 root root 4.3K Jul 10 2014 rsync
-rwxr-xr-x 1 root root 2.8K Oct 2 2014 rsyslog
-rwxr-xr-x 1 root root 1.3K Mar 7 2015 samba
-rwxr-xr-x 1 root root 2.3K Mar 7 2015 samba-ad-dc
-rwxr-xr-x 1 root root 3.2K Apr 6 2015 sendsigs
-rwxr-xr-x 1 root root 3.5K Jan 30 19:11 sickrage
-rwxr-xr-x 1 root root 597 Apr 6 2015 single
-rw-r--r-- 1 root root 1.1K Apr 6 2015 skeleton
-rwxr-xr-x 1 root root 3.5K Oct 21 2014 smartmontools
-rwxr-xr-x 1 root root 1.9K Mar 7 2015 smbd
-rwxr-xr-x 1 root root 4.0K Mar 22 2015 ssh
-rwxr-xr-x 1 root root 4.0K Jul 2 2015 stunnel4
-rwxr-xr-x 1 root root 731 Mar 11 2015 sudo
-rwxr-xr-x 1 root root 2.0K Dec 10 2014 transmission-daemon
-rwxr-xr-x 1 root root 3.1K May 10 2011 triggerhappy
-rwxr-xr-x 1 root root 6.5K May 26 2015 udev
-rwxr-xr-x 1 root root 461 May 26 2015 udev-finish
-rwxr-xr-x 1 root root 2.7K Apr 6 2015 umountfs
-rwxr-xr-x 1 root root 2.2K Apr 6 2015 umountnfs.sh
-rwxr-xr-x 1 root root 1.2K Apr 6 2015 umountroot
-rwxr-xr-x 1 root root 3.1K Oct 15 2012 urandom
-rwxr-xr-x 1 root root 1.6K May 28 2013 vnstat
-rwxr-xr-x 1 root root 1.3K Dec 30 00:10 webmin
-rwxr-xr-x 1 root root 2.7K Sep 26 2013 x11-common