megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
annotate media-tv/plex-media-server/files/plex-media-server-startup_fix.patch @ 0:3d30b669f1d5
added ebuilds for plex-media-server
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Thu, 09 Feb 2012 02:55:54 +0100 |
parents | |
children |
rev | line source |
---|---|
0 | 1 diff -crBN data/etc/default/plexmediaserver data2/etc/default/plexmediaserver |
2 *** data/etc/default/plexmediaserver 2011-07-27 11:25:36.000000000 +0200 | |
3 --- data2/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 data/etc/init/plexmediaserver.conf data2/etc/init/plexmediaserver.conf | |
21 *** data/etc/init/plexmediaserver.conf 2011-07-27 11:25:36.000000000 +0200 | |
22 --- data2/etc/init/plexmediaserver.conf 1970-01-01 01:00:00.000000000 +0100 | |
23 *************** | |
24 *** 1,22 **** | |
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 - script | |
44 - su -c /usr/sbin/start_pms plex | |
45 - end script | |
46 - | |
47 --- 0 ---- | |
48 diff -crBN data/etc/init.d/plex-media-server data2/etc/init.d/plex-media-server | |
49 *** data/etc/init.d/plex-media-server 1970-01-01 01:00:00.000000000 +0100 | |
50 --- data2/etc/init.d/plex-media-server 2011-09-12 11:01:15.000000000 +0200 | |
51 *************** | |
52 *** 0 **** | |
53 --- 1,24 ---- | |
54 + #!/sbin/runscript | |
55 + | |
56 + depend() { | |
57 + need avahi-daemon | |
58 + } | |
59 + | |
60 + start() { | |
61 + ebegin "Starting Plex Media Server" | |
62 + 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 | |
63 + eend $? | |
64 + } | |
65 + | |
66 + stop() { | |
67 + ebegin "Stopping Plex Media Server" | |
68 + # start-stop-daemon --stop --pidfile /var/run/plex-media-server.pid --quiet --exec /usr/sbin/start_pms | |
69 + kill -- -`cat /var/run/plex-media-server.pid` | |
70 + eend $? | |
71 + } | |
72 + | |
73 + restart() { | |
74 + stop | |
75 + sleep 3 | |
76 + start | |
77 + } | |
78 diff -crBN data/etc/plex/plexmediaserver.conf data2/etc/plex/plexmediaserver.conf | |
79 *** data/etc/plex/plexmediaserver.conf 1970-01-01 01:00:00.000000000 +0100 | |
80 --- data2/etc/plex/plexmediaserver.conf 2011-09-12 10:15:11.000000000 +0200 | |
81 *************** | |
82 *** 0 **** | |
83 --- 1,13 ---- | |
84 + # default script for Plex Media Server | |
85 + | |
86 + # the number of plugins that can run at the same time | |
87 + PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 | |
88 + | |
89 + # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE | |
90 + PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 | |
91 + | |
92 + # where the mediaserver should store the transcodes | |
93 + PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
94 + | |
95 + # uncomment to set it to something else | |
96 + # PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support" | |
97 diff -crBN data/usr/sbin/start_pms data2/usr/sbin/start_pms | |
98 *** data/usr/sbin/start_pms 2011-09-12 10:16:10.000000000 +0200 | |
99 --- data2/usr/sbin/start_pms 2011-09-12 10:15:15.000000000 +0200 | |
100 *************** | |
101 *** 7,13 **** | |
102 export PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
103 export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" | |
104 | |
105 ! test -f /etc/default/plexmediaserver && . /etc/default/plexmediaserver | |
106 | |
107 export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" | |
108 export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" | |
109 --- 7,13 ---- | |
110 export PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
111 export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support" | |
112 | |
113 ! test -f /etc/plex/plexmediaserver.conf && . /etc/plex/plexmediaserver.conf | |
114 | |
115 export LD_LIBRARY_PATH="${PLEX_MEDIA_SERVER_HOME}" | |
116 export TMPDIR="${PLEX_MEDIA_SERVER_TMPDIR}" | |
117 diff -crBN data/usr/share/doc/plexmediaserver/README.Debian data2/usr/share/doc/plexmediaserver/README.Debian | |
118 *** data/usr/share/doc/plexmediaserver/README.Debian 2011-07-27 11:25:36.000000000 +0200 | |
119 --- data2/usr/share/doc/plexmediaserver/README.Debian 1970-01-01 01:00:00.000000000 +0100 | |
120 *************** | |
121 *** 1,6 **** | |
122 - thecube-config for Debian | |
123 - ------------------------- | |
124 - | |
125 - <possible notes regarding this package - if none, delete this file> | |
126 - | |
127 - -- Tobias Hieta <tru@unknown> Tue, 07 Dec 2010 16:36:42 +0100 | |
128 --- 0 ---- |