Ik heb de oorzaak gevonden, maar nog niet opgelost. Ik heb Ubuntu server 12.10 opnieuw geinstalleerd, en na de installatie heb ik de volgende commando's uitgevoerd om Couchpotato v2 te installeren (vanuit een kale Ubuntu server 12.10 met openssh en samba vanuit de installatie,
ik heb dus geen enkel ander commando ingeklopt na deze schone installatie!!):
sudo apt-get install git-core python python-cheetah
cd ~
git clone git://github.com/RuudBurger/CouchPotatoServer.git .couchpotato
cd ~/.couchpotato/init
sudo cp ubuntu /etc/init.d/couchpotato
sudo nano /etc/init.d/couchpotato [Zie config hieronder]
sudo chmod +x /etc/init.d/couchpotato
sudo update-rc.d couchpotato defaults
Als ik daarna reboot start openssh-server niet meer automatisch op!
Config /etc/init.d/couchpotato
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
| #! /bin/sh
### BEGIN INIT INFO
# Provides: couchpotato
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start: $NetworkManager
# Should-Stop: $NetworkManager
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts instance of CouchPotato
# Description: starts instance of CouchPotato using start-stop-daemon
### END INIT INFO
############### EDIT ME ##################
# path to app
APP_PATH=/home/roy/.couchpotato/
# user
RUN_AS=roy
# path to python bin
DAEMON=/usr/bin/python
# Path to store PID file
PID_FILE=/var/run/couchpotato.pid
PID_PATH=$(dirname $PID_FILE)
# script name
NAME=couchpotato
# app name
DESC=CouchPotato
# startup args
DAEMON_OPTS=" CouchPotato.py --daemon --pid_file=${PID_FILE}"
############### END EDIT ME ##################
test -x $DAEMON || exit 0
set -e
case "$1" in
start)
echo "Starting $DESC"
rm -rf $PID_PATH || return 1
install -d --mode=0755 -o $RUN_AS $PID_PATH || return 1
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS
;;
stop)
echo "Stopping $DESC"
start-stop-daemon --stop --pidfile $PID_FILE --retry 15
;;
restart|force-reload)
echo "Restarting $DESC"
start-stop-daemon --stop --pidfile $PID_FILE --retry 15
start-stop-daemon -d $APP_PATH -c $RUN_AS --start --background --pidfile $PID_FILE --exec $DAEMON -- $DAEMON_OPTS
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0 |
Na het uitvoeren van "sudo update-rc.d couchpotato remove" start openssh-server weer netjes op.
[
Voor 3% gewijzigd door
WoBBeL op 11-03-2013 17:50
]