]> git.parisson.com Git - telecaster-server.git/commitdiff
add suspend avoid pm rule, add tc-id, update cron, cleanup dev
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 5 Feb 2026 07:01:33 +0000 (08:01 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 5 Feb 2026 07:01:33 +0000 (08:01 +0100)
12 files changed:
etc/cron.d/telecaster
etc/init.d/uwsgi [deleted file]
etc/modprobe.d/telecaster.conf [deleted file]
etc/network/if-up.d/telecaster-rsync
etc/pm/sleep.d/000cancel-hibernate-suspend [new file with mode: 0644]
etc/pm/sleep.d/telecaster_suspend [deleted file]
etc/tc-id [new file with mode: 0644]
etc/telecaster/deefuzzer/telecaster_monitor.yml [deleted file]
etc/telecaster/deefuzzer/telecaster_mp3_monitor.yml [deleted file]
etc/telecaster/deefuzzer/telecaster_webm_monitor.yml [deleted file]
etc/telecaster/deefuzzer/telecaster_webm_monitor_double.yml [deleted file]
etc/telecaster/deefuzzer/telecaster_webm_monitor_single.yml [deleted file]

index 0b901af692312cbb1de319236d64ddecb30f4a53..d0acb85a8e42acdc49ad050cbfb9567c907019e6 100644 (file)
@@ -1,15 +1,17 @@
-59 23 * * * root  systemctl stop telecaster.service
-30 7  * * * root  systemctl start telecaster.service; sleep 10;  systemctl restart telecaster.service
-#30 13 * * * root  systemctl start telecaster.service; sleep 10;  systemctl restart telecaster.service
+59 23 * * * root  /etc/init.d/telecaster stop
+30 7  * * * root  /etc/init.d/telecaster restart
+#30 13 * * * root  /etc/init.d/telecaster restart; sleep 10;  /etc/init.d/telecaster restart
 
+58 23 * * * telecaster pkill -9 -f firefox; systemctl --user restart xdg-desktop-portal.service
 
 0  7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 5 /home/telecaster/monitor/ >> /var/log/telecaster/cleanup.log
 15 7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 5 /home/telecaster/archives/ >> /var/log/telecaster/cleanup.log
+29 * * * * root chmod -R u+rwX,g+rwX,o-w /home/telecaster/archives
 
 0 */3 * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-import-conferences Pre-Barreau /var/log/telecaster/import.log
 30  * * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py telecaster-rsync-archives
 0   1 * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-pull-metadata Pre-Barreau
 55 23 * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-stop-all-conferences
 
-29 * * * * root chmod -R u+rwX,g+rwX,o-w /home/telecaster/archives
+
 
diff --git a/etc/init.d/uwsgi b/etc/init.d/uwsgi
deleted file mode 100755 (executable)
index 6631bc4..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-# /etc/init.d/uwsgi
-#
-
-DAEMON=/usr/local/bin/uwsgi
-PID=/var/run/uwsgi.pid
-INI=/home/parisson/apps/icpmedia/uwsgi.ini
-LOG=/var/log/uwsgi/icpmedia.log
-USER=www-data
-ARGS="--ini $INI --uid $USER --gid $USER --pidfile=$PID --enable-threads --daemonize=$LOG"
-
-# Carry out specific functions when asked to by the system
-case "$1" in
-    start)
-        echo "Starting uwsgi"
-        start-stop-daemon --start --exec $DAEMON -- $ARGS &
-        ;;
-    stop)
-        echo "Stopping script uwsgi"
-        start-stop-daemon --signal INT -p $PID --stop $DAEMON -- $ARGS
-        ;;
-    reload)
-        echo "Reloading conf"
-        kill -HUP $(cat $pid)
-        ;;
-    *)
-        echo "Usage: /etc/init.d/uwsgi {start|stop|reload}"
-        exit 1
-    ;;
-esac
-
-exit 0
diff --git a/etc/modprobe.d/telecaster.conf b/etc/modprobe.d/telecaster.conf
deleted file mode 100644 (file)
index 76655f5..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-# IMPORTANT: DO NOT COPY CONTENTS OF THIS FILE TO TEXT EDITOR IF VIEWING FROM WEB BROWSER, JUST SAVE THE FILE TO YOUR COMPUTER!!!
-# OR VIEW THIS FILE IN UNICODE (UTF-8) MODE IF YOU REALLY WANT TO COPY AND PASTE
-# OTHERWISE YOU WILL GET FORMATTING ERRORS AND THE FILE WILL NOT WORK
-#
-# The first configuration line will put the FastTrack Pro at device number 5 with 24bit mode, max. 48kHz sampling mode, 2 inputs and 4 outputs.
-#
-# The second configuration line will run the FastTrack pro also in 24 bit mode but with sampling rate above 48KHz (Only Playback mode works above this rates).
-# Probably good only for mastering at high resolution.
-#
-# Only uncomment one line (remove # at start of line) depending how you are going to use your FastTrack Pro
-# and remember to reboot your system for changes to take effect. Although the default setting should be good for recording and playback at the same time.
-#
-# Instead of rebooting you can also try unloading and reloading the snd-usb-audio module by doing the following in a terminal:
-#
-#      MAKE SURE TO POWER OFF THE FAST TRACK PRO AND OTHER USB AUDIO DEVICES BEFORE RUNNING THE FOLLOWING COMMANDS
-#      OR YOU WILL GET AN ERROR MESSAGE SAYING THAT THE SPECIFIC MODULE IS IN USE
-#
-#      sudo modprobe -r snd-usb-audio
-#      sudo modprobe snd-usb-audio
-#
-# If that doesn't work then just reboot to play it safe
-#
-# According to the patch, the possible values for the device_setup parameter are the sum of the following numbers:
-#
-#    * 0×01 : use the device_setup parameter, always needed
-#    * 0×02 : enable digital output (channels 3,4)
-#    * 0×04 : use 48kHz-96kHz sampling rate, 8-48 kHz if not used
-#    * 0×08 : 24bit sampling rate
-#    * 0×10 : enable digital input (channels 3,4)
-
-#define MAUDIO_SET_24B_48K_DI   0x19 /* 24bits+48KHz+Digital Input */
-#define MAUDIO_SET_24B_48K_NOTDI 0x09 /* 24bits+48KHz+No Digital Input */
-#define MAUDIO_SET_16B_48K_DI   0x11 /* 16bits+48KHz+Digital Input */
-#define MAUDIO_SET_16B_48K_NOTDI 0x01 /* 16bits+48KHz+No Digital Input */
-#define MAUDIO_SET_COMPATIBLE  0x80 /* use only "win-compatible" interfaces */
-
-#===========================================================================================================================================
-#
-# CONFIGURATION LINES:
-
-#options snd-usb-audio index=3 vid=0x763 pid=0x2012 device_setup=0x12 enable=1
-#options snd-usb-audio index=2 vid=0x46d pid=0x81d enable=1 
-#options       snd-usb-audio index=3,2 vid=0x763,0x46d pid=0x2012,0x81d device_setup=0x09 enable=1
-#options       snd_usb_audio   vid=0x763 pid=0x2012 device_setup=0x5 index=5 enable=1
-
-#options snd-hda-intel index=0
-
-# TC Audio card
-#options snd-usb-audio index=-2 nrpacks=1
-
-# M-Audio Fast Track Pro + Logitech C920 Pro
-#options snd-usb-audio index=3,2 vid=0x763,0x46d pid=0x2012,0x82d enable=1 nrpacks=1
-
-# Digigram UAX 220 Mic + Logitech 
-#options snd-usb-audio index=3,2 vid=0x09ac,0x46d pid=0xd401,0x82d enable=1 nrpacks=1
-
-# Lexicon Omega + Logitech C920 Pro
-#options snd-usb-audio index=3,2 vid=0x1210,0x46d pid=0x0009,0x82d enable=1
-
-# Focusrite Scarlett 2i2  + Logitech C920 Pro
-#options snd-usb-audio index=3,2 vid=0x1235,0x46d pid=0x8200,0x82d enable=1 nrpacks=1
-
-# BERINGER International GhBm = Logitec C920 Pro
-#options snd-usb-audio index=3,2 vid=0x1397,0x46d pid=0x0507,0x82d enable=1 nrpacks=1
-
-# ARTURIA Minifuse 2 + JVC + HDMI input
-#options snd-usb-audio index=3,2,1 vid=0x1c75,0x534d,0x2166 pid=0xaf92,0x2109,0x901a enable=1
-
-
index 762fbebb59656728f06751a791d748091adc770f..d52a9ccb4ef9e9f2754507e5f502721f3d724c6d 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/sh
 
-su -c "/usr/local/lib/telecaster/instance/manage.py telecaster-rsync-archives" telecaster
+su -c "/srv/telecaster/instance/manage.py telecaster-rsync-archives" telecaster
 
diff --git a/etc/pm/sleep.d/000cancel-hibernate-suspend b/etc/pm/sleep.d/000cancel-hibernate-suspend
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/etc/pm/sleep.d/telecaster_suspend b/etc/pm/sleep.d/telecaster_suspend
deleted file mode 100755 (executable)
index f25b6b8..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#! /bin/sh
-
-# This script puts the TeleCaster services to
-# suspend before going to sleep. Otherwise it may be in a weird state
-# after wakeup, namely everything looks fine from various AT commands,
-# the modem is registered to the cell network and reports a suitable
-# signal strength, but attempting to dial out by atdt*99# or, it seems,
-# any other number and the modem just responds instantly with NO CARRIER.
-
-
-#if [ ! -x /sys/bus/usb/devices/${BUS}-${DEVICE}/power/level ]; then
-#    exit 0
-#fi
-
-case $1 in
-     suspend|suspend_hybrid|hibernate)
-       /etc/init.d/telecaster stop
-        sleep 1
-        /etc/init.d/jackd stop
-        ;;
-     resume|thaw)
-       /etc/init.d/jackd start
-        /etc/init.d/telecaster start
-        ;;
-esac
diff --git a/etc/tc-id b/etc/tc-id
new file mode 100644 (file)
index 0000000..999dea6
--- /dev/null
+++ b/etc/tc-id
@@ -0,0 +1 @@
+tc-50
\ No newline at end of file
diff --git a/etc/telecaster/deefuzzer/telecaster_monitor.yml b/etc/telecaster/deefuzzer/telecaster_monitor.yml
deleted file mode 100644 (file)
index 07f5600..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-deefuzzer:
-  log: /var/log/telecaster/telecaster_monitor.log
-  m3u: /var/www/m3u/telecaster_monitor.m3u
-  station:
-  - control:
-      mode: 1
-      port: 16002
-    infos:
-      description: TeleCaster WebM monitor stream
-      genre: Vocal
-      name: monitor_1.webm
-      short_name: monitor_1.webm
-      url: https://www.parisson.com
-    jingles:
-      dir: /path/to/jingles
-      mode: '0'
-      shuffle: '0'
-    media:
-      bitrate: '512'
-      dir: /usr/local/share/telecaster/media/webm
-      format: webm
-      ogg_quality: '4'
-      samplerate: '48000'
-      shuffle: '0'
-      voices: '1'
-    record:
-      dir: /home/telecaster/trash/webm/1
-      mode: 1
-    relay:
-      author: TeleCaster
-      mode: '1'
-      url: http://127.0.0.1:8000/telecaster_live_1.webm
-    rss:
-      dir: /var/www/rss
-      enclosure: '0'
-      media_url: http://localhost/rss/
-    server:
-      host: 127.0.0.1
-      mountpoint: monitor_1.webm
-      port: '8000'
-      public: '0'
-      sourcepassword: source2parisson
-      type: icecast
-    twitter:
-      key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE
-      mode: '0'
-      secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4
-      tags: bla bla
-  - control:
-      mode: 1
-      port: 16001
-    infos:
-      description: TeleCaster MP3 monitor
-      genre: Vocal
-      name: monitor.mp3
-      short_name: monitor.mp3
-      url: https://www.parisson.com
-    jingles:
-      dir: /path/to/jingles
-      mode: 0
-      shuffle: 1
-    media:
-      bitrate: 96
-      dir: /usr/local/share/telecaster/media/mp3
-      format: mp3
-      ogg_quality: 4
-      samplerate: 48000
-      shuffle: 0
-      voices: '2'
-    record:
-      dir: /home/telecaster/trash/mp3
-      mode: 1
-    relay:
-      author: Inconnu
-      mode: 1
-      url: http://127.0.0.1:8000/telecaster_live.mp3
-    rss:
-      dir: /var/www/rss
-      enclosure: 0
-      media_url: http://localhost/rss/
-    server:
-      host: 127.0.0.1
-      mountpoint: monitor.mp3
-      port: 8000
-      public: 0
-      sourcepassword: source2parisson
-      type: icecast
-    twitter:
-      key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE
-      mode: 0
-      secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4
-      tags: bla bla
diff --git a/etc/telecaster/deefuzzer/telecaster_mp3_monitor.yml b/etc/telecaster/deefuzzer/telecaster_mp3_monitor.yml
deleted file mode 100644 (file)
index 4ba8b96..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-deefuzzer:
-  log: /var/log/telecaster/telecaster_mp3_monitor.log
-  m3u: /var/www/m3u/telecaster_mp3_monitor.m3u
-  station:
-    control:
-      mode: 1
-      port: 16001
-    infos:
-      description: TeleCaster MP3 monitor
-      genre: Vocal
-      name: monitor.mp3
-      short_name: monitor.mp3
-      url: https://www.parisson.com
-    jingles:
-      dir: /path/to/jingles
-      mode: 0
-      shuffle: 1
-    media:
-      bitrate: 96
-      dir: /usr/local/share/telecaster/media/mp3
-      format: mp3
-      ogg_quality: 4
-      samplerate: 48000
-      shuffle: 0
-      voices: '2'
-    record:
-      dir: /home/telecaster/trash/mp3
-      mode: 1
-    relay:
-      author: Inconnu
-      mode: 1
-      url: http://127.0.0.1:8000/telecaster_live.mp3
-    rss:
-      dir: /var/www/rss
-      enclosure: 0
-      media_url: http://localhost/rss/
-    server:
-      host: 127.0.0.1
-      mountpoint: monitor.mp3
-      port: 8000
-      public: 0
-      sourcepassword: source2parisson
-      type: icecast
-    twitter:
-      key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE
-      mode: 0
-      secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4
-      tags: bla bla
diff --git a/etc/telecaster/deefuzzer/telecaster_webm_monitor.yml b/etc/telecaster/deefuzzer/telecaster_webm_monitor.yml
deleted file mode 100644 (file)
index c2c05b0..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-deefuzzer:
-  log: /var/log/telecaster/telecaster_webm_monitor.log
-  m3u: /var/www/m3u/telecaster_webm_monitor.m3u
-  station:
-    control:
-      mode: 1
-      port: 16002
-    infos:
-      description: TeleCaster WebM monitor stream
-      genre: Vocal
-      name: monitor_1.webm
-      short_name: monitor_1.webm
-      url: https://www.parisson.com
-    jingles:
-      dir: /path/to/jingles
-      mode: '0'
-      shuffle: '0'
-    media:
-      bitrate: '512'
-      dir: /usr/local/share/telecaster/media/webm
-      format: webm
-      ogg_quality: '4'
-      samplerate: '48000'
-      shuffle: '0'
-      voices: '1'
-    record:
-      dir: /home/telecaster/trash/webm/1
-      mode: 1
-    relay:
-      author: TeleCaster
-      mode: '1'
-      url: http://127.0.0.1:8000/telecaster_live_1.webm
-    rss:
-      dir: /var/www/rss
-      enclosure: '0'
-      media_url: http://localhost/rss/
-    server:
-      host: 127.0.0.1
-      mountpoint: monitor_1.webm
-      port: '8000'
-      public: '0'
-      sourcepassword: source2parisson
-      type: icecast
-    twitter:
-      key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE
-      mode: '0'
-      secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4
-      tags: bla bla
diff --git a/etc/telecaster/deefuzzer/telecaster_webm_monitor_double.yml b/etc/telecaster/deefuzzer/telecaster_webm_monitor_double.yml
deleted file mode 100644 (file)
index 4bc9496..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-deefuzzer:
-  log: /var/log/telecaster/telecaster_webm_monitor.log
-  m3u: /var/www/m3u/telecaster_webm_monitor.m3u
-  station:
-   -
-    control: {mode: 1, port: 16002}
-    infos: {description: TeleCaster WebM monitor stream, genre: Vocal, name: monitor_0.webm, short_name: monitor_0.webm,
-      url: 'https://www.parisson.com'}
-    jingles: {dir: /path/to/jingles, mode: '0', shuffle: '0'}
-    media: {bitrate: '512', dir: /usr/local/share/telecaster/media/webm, format: webm, ogg_quality: '4',
-      samplerate: '48000', shuffle: '0', voices: '1'}
-    record: {dir: /home/telecaster/trash/webm/1, mode: 1}
-    relay: {author: TeleCaster, mode: '1', url: 'http://127.0.0.1:8000/telecaster_live_0.webm'}
-    rss: {dir: /var/www/rss, enclosure: '0', media_url: 'http://localhost/rss/'}
-    server: {host: 127.0.0.1, port: '8000', public: '0', sourcepassword: source2parisson,
-      type: icecast, mountpoint: monitor_0.webm}
-    twitter: {key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE, mode: '0', secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4,
-      tags: bla bla}
-   -
-    control: {mode: 1, port: 16003}
-    infos: {description: TeleCaster WebM monitor stream, genre: Vocal, name: monitor_2.webm, short_name: monitor_2.webm,
-      url: 'https://www.parisson.com'}
-    jingles: {dir: /path/to/jingles, mode: '0', shuffle: '0'}
-    media: {bitrate: '512', dir: /usr/local/share/telecaster/media/webm, format: webm, ogg_quality: '4',
-      samplerate: '48000', shuffle: '0', voices: '1'}
-    record: {dir: /home/telecaster/trash/webm/2, mode: 1}
-    relay: {author: TeleCaster, mode: '1', url: 'http://127.0.0.1:8000/telecaster_live_2.webm'}
-    rss: {dir: /var/www/rss, enclosure: '0', media_url: 'http://localhost/rss/'}
-    server: {host: 127.0.0.1, port: '8000', public: '0', sourcepassword: source2parisson,
-      type: icecast, mountpoint: monitor_2.webm}
-    twitter: {key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE, mode: '0', secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4,
-      tags: bla bla}
diff --git a/etc/telecaster/deefuzzer/telecaster_webm_monitor_single.yml b/etc/telecaster/deefuzzer/telecaster_webm_monitor_single.yml
deleted file mode 100644 (file)
index 8ce7c84..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-deefuzzer:
-  log: /var/log/telecaster/telecaster_webm_monitor.log
-  m3u: /var/www/m3u/telecaster_webm_monitor.m3u
-  station:
-    control: {mode: 1, port: 16002}
-    infos: {description: TeleCaster WebM monitor stream, genre: Vocal, name: monitor_1.webm, short_name: monitor_1.webm,
-      url: 'https://www.parisson.com'}
-    jingles: {dir: /path/to/jingles, mode: '0', shuffle: '0'}
-    media: {bitrate: '512', dir: /usr/local/share/telecaster/media/webm, format: webm, ogg_quality: '4',
-      samplerate: '48000', shuffle: '0', voices: '1'}
-    record: {dir: /home/telecaster/trash/webm/1, mode: 1}
-    relay: {author: TeleCaster, mode: '1', url: 'http://127.0.0.1:8000/telecaster_live_1.webm'}
-    rss: {dir: /var/www/rss, enclosure: '0', media_url: 'http://localhost/rss/'}
-    server: {host: 127.0.0.1, port: '8000', public: '0', sourcepassword: source2parisson,
-      type: icecast, mountpoint: monitor_1.webm}
-    twitter: {key: 76728330-OjKgbHtn4II86Ad7pNUGEzfNAkGTW5Wvw38qUmLE, mode: '0', secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4,
-      tags: bla bla}