-
Notifications
You must be signed in to change notification settings - Fork 238
Description
Describe the bug
After updating to version 3.7.0 jamulus server is terminating by SIGTERM (15) after recieving SIGUSR2(12) to toggle recording.
Apr 14 12:02:38 jamulus jamulus[26951]: 2021-04-14 12:02:38, 79.202.58.202, connected (1)
Apr 14 12:02:46 jamulus sudo[26959]: herbe : TTY=pts/1 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/usr/bin/systemctl kill -s SIGUSR2 jamulus
Apr 14 12:02:46 jamulus sudo[26959]: pam_unix(sudo:session): session opened for user root by herbe(uid=0)
Apr 14 12:02:46 jamulus jamulus[26951]: OnHandledSignal: 12
Apr 14 12:02:46 jamulus jamulus[26951]: Recording state: enabled
Apr 14 12:02:46 jamulus sudo[26959]: pam_unix(sudo:session): session closed for user root
Apr 14 12:02:46 jamulus jamulus[26951]: OnHandledSignal: 15
Apr 14 12:02:46 jamulus jamulus[26951]: Session RPP: "/home/herbe/recordings/Jam-20210414-120246148/Jam-20210414-120246148.rpp"
Apr 14 12:02:46 jamulus jamulus[26951]: Session LOF: "/home/herbe/recordings/Jam-20210414-120246148/Jam-20210414-120246148.lof"
Apr 14 12:02:46 jamulus jamulus[26951]: 2021-04-14 12:02:46,, server idling -------------------------------------
Apr 14 12:02:46 jamulus systemd[1]: jamulus.service: Succeeded.
Apr 14 12:04:22 jamulus sudo[26961]: herbe : TTY=pts/1 ; PWD=/etc/systemd/system ; USER=root ; COMMAND=/usr/bin/systemctl restart jamulus.service
Apr 14 12:04:22 jamulus sudo[26961]: pam_unix(sudo:session): session opened for user root by herbe(uid=0)
Apr 14 12:04:22 jamulus systemd[1]: Started Jamulus-Server.
Apr 14 12:04:22 jamulus sudo[26961]: pam_unix(sudo:session): session closed for user root
Apr 14 12:04:22 jamulus jamulus[26965]: - using 64 samples frame size mode
Apr 14 12:04:22 jamulus jamulus[26965]: - using multithreading
Apr 14 12:04:22 jamulus jamulus[26965]: - server mode chosen
Apr 14 12:04:22 jamulus jamulus[26965]: - no GUI mode chosen
Apr 14 12:04:22 jamulus jamulus[26965]: - recording directory name: /home/herbe/recordings/
Apr 14 12:04:22 jamulus jamulus[26965]: - recording will not be enabled
Apr 14 12:04:22 jamulus jamulus[26965]: Using "192.168.178.37" as external IP.
Apr 14 12:04:22 jamulus jamulus[26965]: Recording state: disabled
Apr 14 12:04:22 jamulus jamulus[26965]: *** Jamulus, Version 3.7.0
Apr 14 12:04:22 jamulus jamulus[26965]: *** Internet Jam Session Software
Apr 14 12:04:22 jamulus jamulus[26965]: *** Released under the GNU General Public License (GPL)
Apr 14 12:04:22 jamulus jamulus[26965]: 2021-04-14 12:04:22, 79.202.58.202, connected (1)
To Reproduce
Run jamulus 3.7.0 as headless server.
[Unit]
Description=Jamulus-Server
After=network.target
[Service]
Type=simple
User=herbe
Group=jamulus
NoNewPrivileges=true
ProtectSystem=true
ProtectHome=false
Nice=-20
IOSchedulingClass=realtime
IOSchedulingPriority=0
RestartPreventExitStatus=SIGTERM
#### Change this to set genre, location and other parameters.
#### See [Command-Line-Options](Command-Line-Options) ####
#ExecStart=/usr/local/bin/Jamulus -F -T -s -n -R "/home/herbe/recordings/"
#ExecStart=/usr/local/bin/Jamulus -F -T -s -n -R "/home/herbe/recordings/"
ExecStart=/bin/sh -c '/usr/local/bin/Jamulus -F -T -s -n -R "/home/herbe/recordings/" --norecord'
Restart=on-failure
RestartSec=30
StandardOutput=journal
StandardError=inherit
SyslogIdentifier=jamulus
[Install]
WantedBy=multi-user.target
Send command to toggle recording sudo systemctl kill -s SIGUSR2 jamulus
The recording starts, but after 30 sec the services restarts and all clients are disconnected.
Expected behavior
Same behavior as before the update. Sending SIGUSR2toggles Recording on and off. But does not terminate the system.
Running jamulus 3.7.0 from console works fine. SIGUSR2 works as expected.
Screenshots
See log above.
Operating system
Linux jamulus 5.8.0-45-lowlatency #51-Ubuntu SMP PREEMPT Fri Feb 19 15:11:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Same failure on self compiled headless binary or using ubuntu .deb package.
Version of Jamulus
3.7.0.
Previous version was not affected.
Additional context