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.
comparison media-tv/plex-media-server/files/plex-media-server-0.9.6.1.89-startup_fix.patch @ 6:9364edc05667
added ebuild for version 0.9.6.1 of plex-media-server
author | gsnerf <gsnerf@gsnerf.de> |
---|---|
date | Fri, 18 May 2012 12:25:44 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5:f72595823742 | 6:9364edc05667 |
---|---|
1 --- data/etc/init/plexmediaserver.conf 2012-05-07 08:57:15.000000000 +0200 | |
2 +++ data2/etc/init/plexmediaserver.conf 2012-05-16 20:10:14.203980585 +0200 | |
3 @@ -1,24 +0,0 @@ | |
4 -# plexpms - service job file | |
5 - | |
6 -description "Plex Media Server" | |
7 -author "http://www.plexapp.com/" | |
8 - | |
9 -# When to start the service | |
10 -start on runlevel [2345] | |
11 - | |
12 -# When to stop the service | |
13 -stop on runlevel [016] | |
14 - | |
15 -# Automatically restart process if crashed | |
16 -respawn | |
17 - | |
18 -# Sets nice and ionice level for job | |
19 -nice -5 | |
20 - | |
21 -# What to execute | |
22 -script | |
23 - if [ -r /etc/default/plexmediaserver ]; then | |
24 - . /etc/default/plexmediaserver | |
25 - fi | |
26 - start-stop-daemon --start -c $PLEX_MEDIA_SERVER_USER --exec /usr/sbin/start_pms | |
27 -end script | |
28 diff -crBN data/etc/init.d/plex-media-server data2/etc/init.d/plex-media-server | |
29 *** data/etc/init.d/plex-media-server 1970-01-01 01:00:00.000000000 +0100 | |
30 --- data2/etc/init.d/plex-media-server 2011-09-12 11:01:15.000000000 +0200 | |
31 *************** | |
32 *** 0 **** | |
33 --- 1,24 ---- | |
34 + #!/sbin/runscript | |
35 + | |
36 + depend() { | |
37 + need avahi-daemon | |
38 + } | |
39 + | |
40 + start() { | |
41 + ebegin "Starting Plex Media Server" | |
42 + start-stop-daemon -S -m -p /var/run/plex-media-server.pid -1 /tmp/pms.out.log -2 /tmp/pms.err.log --quiet -c plex -N -5 -b --exec /usr/sbin/start_pms | |
43 + eend $? | |
44 + } | |
45 + | |
46 + stop() { | |
47 + ebegin "Stopping Plex Media Server" | |
48 + # start-stop-daemon --stop --pidfile /var/run/plex-media-server.pid --quiet --exec /usr/sbin/start_pms | |
49 + kill -- -`cat /var/run/plex-media-server.pid` | |
50 + eend $? | |
51 + } | |
52 + | |
53 + restart() { | |
54 + stop | |
55 + sleep 3 | |
56 + start | |
57 + } | |
58 diff -crBN data/etc/plex/plexmediaserver.conf data2/etc/plex/plexmediaserver.conf | |
59 *** data/etc/plex/plexmediaserver.conf 1970-01-01 01:00:00.000000000 +0100 | |
60 --- data2/etc/plex/plexmediaserver.conf 2011-09-12 10:15:11.000000000 +0200 | |
61 *************** | |
62 *** 0 **** | |
63 --- 1,13 ---- | |
64 + # default script for Plex Media Server | |
65 + | |
66 + # the number of plugins that can run at the same time | |
67 + PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 | |
68 + | |
69 + # ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE | |
70 + PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000 | |
71 + | |
72 + # where the mediaserver should store the transcodes | |
73 + PLEX_MEDIA_SERVER_TMPDIR=/tmp | |
74 + | |
75 + # uncomment to set it to something else | |
76 + # PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application\ Support" | |
77 diff -crBN data/usr/share/doc/plexmediaserver/README.Debian data2/usr/share/doc/plexmediaserver/README.Debian | |
78 *** data/usr/share/doc/plexmediaserver/README.Debian 2011-07-27 11:25:36.000000000 +0200 | |
79 --- data2/usr/share/doc/plexmediaserver/README.Debian 1970-01-01 01:00:00.000000000 +0100 | |
80 *************** | |
81 *** 1,6 **** | |
82 - thecube-config for Debian | |
83 - ------------------------- | |
84 - | |
85 - <possible notes regarding this package - if none, delete this file> | |
86 - | |
87 - -- Tobias Hieta <tru@unknown> Tue, 07 Dec 2010 16:36:42 +0100 | |
88 --- 0 ---- |