]> git.hoellein.online Git - homeserver/commitdiff
daily autocommit
authormhoellein <mhoellein@freenet.de>
Wed, 7 Aug 2019 22:07:38 +0000 (00:07 +0200)
committermhoellein <mhoellein@freenet.de>
Wed, 7 Aug 2019 22:07:38 +0000 (00:07 +0200)
13 files changed:
.etckeeper
apt/sources.list.d/plexmediaserver.list [new file with mode: 0644]
default/plexmediaserver [new file with mode: 0644]
group
group-
gshadow
gshadow-
init/plexmediaserver.conf [new file with mode: 0644]
passwd
passwd-
shadow
shadow-
systemd/system/multi-user.target.wants/plexmediaserver.service [new symlink]

index ee32422d7adaab279349f148881c88bd4f4600cd..0146836676a4d0c4468f3c48210acfda67938270 100755 (executable)
@@ -765,6 +765,7 @@ maybe chmod 0664 'apt/sources.list'
 maybe chmod 0755 'apt/sources.list.d'
 maybe chmod 0644 'apt/sources.list.d/MariaDB.list'
 maybe chmod 0644 'apt/sources.list.d/official-package-repositories.list'
+maybe chmod 0644 'apt/sources.list.d/plexmediaserver.list'
 maybe chmod 0600 'apt/trustdb.gpg'
 maybe chmod 0644 'apt/trusted.gpg'
 maybe chmod 0755 'apt/trusted.gpg.d'
@@ -2175,6 +2176,7 @@ maybe chmod 0644 'default/ntp'
 maybe chmod 0644 'default/ntpdate'
 maybe chmod 0644 'default/openbsd-inetd'
 maybe chmod 0644 'default/openvpn'
+maybe chmod 0644 'default/plexmediaserver'
 maybe chmod 0644 'default/proftpd'
 maybe chmod 0644 'default/rcS'
 maybe chmod 0644 'default/redis-server'
@@ -2930,6 +2932,7 @@ maybe chmod 0644 'init/network-manager.conf'
 maybe chmod 0644 'init/network-manager.override'
 maybe chmod 0644 'init/oem-config.conf'
 maybe chmod 0644 'init/php7.2-fpm.conf'
+maybe chmod 0644 'init/plexmediaserver.conf'
 maybe chmod 0644 'init/plymouth-log.conf'
 maybe chmod 0644 'init/plymouth-ready.conf'
 maybe chmod 0644 'init/plymouth-shutdown.conf'
diff --git a/apt/sources.list.d/plexmediaserver.list b/apt/sources.list.d/plexmediaserver.list
new file mode 100644 (file)
index 0000000..fbf9252
--- /dev/null
@@ -0,0 +1,3 @@
+# When enabling this repo please remember to add the PlexPublic.Key into the apt setup.
+# wget -q https://downloads.plex.tv/plex-keys/PlexSign.key -O - | sudo apt-key add -
+#deb https://downloads.plex.tv/repo/deb/ public main
diff --git a/default/plexmediaserver b/default/plexmediaserver
new file mode 100644 (file)
index 0000000..51709fc
--- /dev/null
@@ -0,0 +1,23 @@
+# default script for Plex Media Server
+
+# the number of plugins that can run at the same time
+export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
+
+# ulimit -s $PLEX_MEDIA_SERVER_MAX_STACK_SIZE
+export PLEX_MEDIA_SERVER_MAX_STACK_SIZE=3000
+
+# where the mediaserver should store the transcodes
+export PLEX_MEDIA_SERVER_TMPDIR=/tmp
+
+# uncomment to set it to something else
+# export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="${HOME}/Library/Application Support"
+
+# the user that PMS should run as, defaults to 'plex'
+# note that if you change this you might need to move
+# the Application Support directory to not lose your
+# media library (match what is in /etc/passwd)
+export PLEX_MEDIA_SERVER_USER=plex
+
+# Uncomment this to use syslog for logging instead of
+# sending logs to Plex Media Server.log
+#export PLEX_MEDIA_SERVER_USE_SYSLOG=true
diff --git a/group b/group
index fee5352ce8c6d92a9c65af26599e8932384f7bd3..a011a90e20130cbad7149a8de6e9ec7c8334bf10 100644 (file)
--- a/group
+++ b/group
@@ -30,7 +30,7 @@ src:x:40:
 gnats:x:41:
 shadow:x:42:
 utmp:x:43:
-video:x:44:
+video:x:44:plex
 sasl:x:45:
 plugdev:x:46:mhoellein
 staff:x:50:
@@ -104,3 +104,4 @@ lool:x:156:
 serverbackup:x:5003:
 autossh:x:5004:
 systemd-coredump:x:157:
+plex:x:158:
diff --git a/group- b/group-
index 25c0a8df91c44a0a5c8f282bdcb4429f2a8cb98a..22386b08d0dd8398196af199381396ac5006e4af 100644 (file)
--- a/group-
+++ b/group-
@@ -103,3 +103,5 @@ geoclue:x:155:
 lool:x:156:
 serverbackup:x:5003:
 autossh:x:5004:
+systemd-coredump:x:157:
+plex:x:158:
diff --git a/gshadow b/gshadow
index f8d0eabef8ee56c7a51e087be0d33eece63515b6..f980d2c1276005af6d7f5278bf95d2d7ff1b22dc 100644 (file)
--- a/gshadow
+++ b/gshadow
@@ -30,7 +30,7 @@ src:*::
 gnats:*::
 shadow:*::
 utmp:*::
-video:*::
+video:*::plex
 sasl:*::
 plugdev:*::mhoellein
 staff:*::
@@ -104,3 +104,4 @@ lool:!::
 serverbackup:!::
 autossh:!::
 systemd-coredump:!::
+plex:!::
index e7a1a38a2d4ed195539eced6b6458d6f17ed3312..e5b4dfa54df30831ef578df96f2791fa54a6f8e8 100644 (file)
--- a/gshadow-
+++ b/gshadow-
@@ -103,3 +103,5 @@ geoclue:!::
 lool:!::
 serverbackup:!::
 autossh:!::
+systemd-coredump:!::
+plex:!::
diff --git a/init/plexmediaserver.conf b/init/plexmediaserver.conf
new file mode 100644 (file)
index 0000000..cc1bca5
--- /dev/null
@@ -0,0 +1,22 @@
+# Plex Media Server - service job file
+
+description "Plex Media Server"
+author "https://plex.tv/"
+
+# Start the media server after network and filesystem
+# Otherwise this lead to a unresponsive server
+start on filesystem and net-device-up IFACE!=lo
+
+# When to stop the service
+stop on runlevel [016]
+
+# Automatically restart process if crashed
+respawn
+
+# What to execute
+script
+  if [ -r /etc/default/plexmediaserver ]; then
+    . /etc/default/plexmediaserver
+  fi
+  start-stop-daemon --start -c $PLEX_MEDIA_SERVER_USER --exec /usr/sbin/start_pms
+end script
diff --git a/passwd b/passwd
index 4704155d42677fc0c1e934d058d9c6e08c1506e1..40e5db3789b2b5e630d41172815e97b3016a5f0b 100644 (file)
--- a/passwd
+++ b/passwd
@@ -77,3 +77,4 @@ lool:x:149:156::/opt/lool:/usr/sbin/nologin
 serverbackup:x:5003:5003::/home/serverbackup:/bin/bash
 autossh:x:5004:5004:ssh tunnel user:/var/lib/autossh:/bin/sh
 systemd-coredump:x:150:157:systemd core dump processing,,,:/run/systemd:/usr/sbin/nologin
+plex:x:151:158::/var/lib/plexmediaserver:/bin/bash
diff --git a/passwd- b/passwd-
index 1f98fab37bb24514e3748f0533bcaa8af4f2fdd8..40e5db3789b2b5e630d41172815e97b3016a5f0b 100644 (file)
--- a/passwd-
+++ b/passwd-
@@ -76,4 +76,5 @@ geoclue:x:148:155::/var/lib/geoclue:/usr/sbin/nologin
 lool:x:149:156::/opt/lool:/usr/sbin/nologin
 serverbackup:x:5003:5003::/home/serverbackup:/bin/bash
 autossh:x:5004:5004:ssh tunnel user:/var/lib/autossh:/bin/sh
-systemd-coredump:x:150:157::/run/systemd:/usr/sbin/nologin
+systemd-coredump:x:150:157:systemd core dump processing,,,:/run/systemd:/usr/sbin/nologin
+plex:x:151:158::/var/lib/plexmediaserver:/bin/bash
diff --git a/shadow b/shadow
index a31fd3ecbc0bd14c82e9a38ef6ff1dfc3d9cb290..ec4923fd1591b79e52f0d7f9a24b2b0ce9d5cd0c 100644 (file)
--- a/shadow
+++ b/shadow
@@ -77,3 +77,4 @@ lool:*:17828:0:99999:7:::
 serverbackup:$6$eaExedUs$qMxK2M5Q/pA6bz8crjGw1pESBnAFkus3IHDZTkCe1FFOw6LECghvQfM86zyNk.G4L5chDSgYeElHSvWgPIxJ.1:17841:0:99999:7:::
 autossh:!:17872:0:99999:7:::
 systemd-coredump:*:18049:0:99999:7:::
+plex:*:18115:0:99999:7:::
diff --git a/shadow- b/shadow-
index a31fd3ecbc0bd14c82e9a38ef6ff1dfc3d9cb290..ec4923fd1591b79e52f0d7f9a24b2b0ce9d5cd0c 100644 (file)
--- a/shadow-
+++ b/shadow-
@@ -77,3 +77,4 @@ lool:*:17828:0:99999:7:::
 serverbackup:$6$eaExedUs$qMxK2M5Q/pA6bz8crjGw1pESBnAFkus3IHDZTkCe1FFOw6LECghvQfM86zyNk.G4L5chDSgYeElHSvWgPIxJ.1:17841:0:99999:7:::
 autossh:!:17872:0:99999:7:::
 systemd-coredump:*:18049:0:99999:7:::
+plex:*:18115:0:99999:7:::
diff --git a/systemd/system/multi-user.target.wants/plexmediaserver.service b/systemd/system/multi-user.target.wants/plexmediaserver.service
new file mode 120000 (symlink)
index 0000000..7dd4439
--- /dev/null
@@ -0,0 +1 @@
+/lib/systemd/system/plexmediaserver.service
\ No newline at end of file