We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

comparison media-tv/plex-media-server/files/plex-media-server-0.9.5.3-startup_fix.patch @ 1:d4fc774c808c

added new ebuild for plex-media-server v0.9.5.3
author gsnerf <gsnerf@gsnerf.de>
date Thu, 15 Mar 2012 23:56:52 +0100
parents
children
comparison
equal deleted inserted replaced
0:3d30b669f1d5 1:d4fc774c808c
1 diff -crBN data2/etc/default/plexmediaserver data/etc/default/plexmediaserver
2 *** data2/etc/default/plexmediaserver 2012-03-15 22:56:18.000000000 +0100
3 --- data/etc/default/plexmediaserver 1970-01-01 01:00:00.000000000 +0100
4 ***************
5 *** 1,13 ****
6 - # default script for Plex Media Server
7 -
8 - # the number of plugins that can run at the same time
9 - PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
10 -
11 - # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
12 - PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
13 -
14 - # where the mediaserver should store the transcodes
15 - PLEX_MEDIA_SERVER_TMPDIR=/tmp
16 -
17 - # uncomment to set it to something else
18 - # PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"
19 --- 0 ----
20 diff -crBN data2/etc/init/plexmediaserver.conf data/etc/init/plexmediaserver.conf
21 *** data2/etc/init/plexmediaserver.conf 2012-03-15 22:56:18.000000000 +0100
22 --- data/etc/init/plexmediaserver.conf 1970-01-01 01:00:00.000000000 +0100
23 ***************
24 *** 1,20 ****
25 - # plexpms - service job file
26 -
27 - description "Plex Media Server"
28 - author "http://www.plexapp.com/"
29 -
30 - # When to start the service
31 - start on runlevel [2345]
32 -
33 - # When to stop the service
34 - stop on runlevel [016]
35 -
36 - # Automatically restart process if crashed
37 - respawn
38 -
39 - # Sets nice and ionice level for job
40 - nice -5
41 -
42 - # What to execute
43 - exec start-stop-daemon --start -c plex --exec /usr/sbin/start_pms
44 -
45 --- 0 ----
46 diff -crBN data2/etc/init.d/plex-media-server data/etc/init.d/plex-media-server
47 *** data2/etc/init.d/plex-media-server 1970-01-01 01:00:00.000000000 +0100
48 --- data/etc/init.d/plex-media-server 2012-03-15 23:01:43.000000000 +0100
49 ***************
50 *** 0 ****
51 --- 1,24 ----
52 + #!/sbin/runscript
53 +
54 + depend() {
55 + need avahi-daemon
56 + }
57 +
58 + start() {
59 + ebegin "Starting Plex Media Server"
60 + start-stop-daemon -S -m -p /var/run/plex-media-server.pid -1 /var/log/pms/out.log -2 /var/log/pms/err.log --quiet -u plex -N -5 -b --exec /usr/sbin/start_pms
61 + eend $?
62 + }
63 +
64 + stop() {
65 + ebegin "Stopping Plex Media Server"
66 + # start-stop-daemon --stop --pidfile /var/run/plex-media-server.pid --quiet --exec /usr/sbin/start_pms
67 + kill -- -`cat /var/run/plex-media-server.pid`
68 + eend $?
69 + }
70 +
71 + restart() {
72 + stop
73 + sleep 3
74 + start
75 + }
76 diff -crBN data2/etc/plex/plexmediaserver.conf data/etc/plex/plexmediaserver.conf
77 *** data2/etc/plex/plexmediaserver.conf 1970-01-01 01:00:00.000000000 +0100
78 --- data/etc/plex/plexmediaserver.conf 2012-03-15 23:03:24.000000000 +0100
79 ***************
80 *** 0 ****
81 --- 1,13 ----
82 + # default script for Plex Media Server
83 +
84 + # the number of plugins that can run at the same time
85 + PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
86 +
87 + # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
88 + PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
89 +
90 + # where the mediaserver should store the transcodes
91 + PLEX_MEDIA_SERVER_TMPDIR=/tmp
92 +
93 + # uncomment to set it to something else
94 + # PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support"
95 diff -crBN data2/usr/sbin/start_pms data/usr/sbin/start_pms
96 *** data2/usr/sbin/start_pms 2012-03-15 22:56:22.000000000 +0100
97 --- data/usr/sbin/start_pms 2012-03-15 23:07:26.000000000 +0100
98 ***************
99 *** 7,13 ****
100 export PLEX_MEDIA_SERVER_TMPDIR=/tmp
101 export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"
102
103 ! test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver
104
105 export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}"
106 export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
107 --- 7,13 ----
108 export PLEX_MEDIA_SERVER_TMPDIR=/tmp
109 export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"
110
111 ! test -f /etc/plex/plexmediaserver.conf && . /etc/plex/plexmediaserver.conf
112
113 export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}"
114 export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}"
115 diff -crBN data2/usr/share/doc/plexmediaserver/README.Debian data/usr/share/doc/plexmediaserver/README.Debian
116 *** data2/usr/share/doc/plexmediaserver/README.Debian 2012-03-07 20:33:46.000000000 +0100
117 --- data/usr/share/doc/plexmediaserver/README.Debian 1970-01-01 01:00:00.000000000 +0100
118 ***************
119 *** 1,6 ****
120 - thecube-config for Debian
121 - -------------------------
122 -
123 - <possible notes regarding this package - if none, delete this file>
124 -
125 - -- Tobias Hieta <tru@unknown> Tue, 07 Dec 2010 16:36:42 +0100
126 --- 0 ----