INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: SystemD with "new" mc27 binary  (Read 1510 times)

Mike Noe

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 792
SystemD with "new" mc27 binary
« on: February 20, 2021, 07:37:25 am »

This might be expected behavior -- not sure.

I have a systemd (--user) unit script
Code: [Select]
[Unit]
Description=JRiver
After=display-manager.service

[Service]
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/mc27 /MediaServer
Restart=always
RestartSec=10
KillSignal=SIGHUP
TimeoutStopSec=45
LimitRTPRIO=100

[Install]
WantedBy=graphical.target

systemctl --user start jriver.service works fine, journalctl reports success, but mediacenter never starts. I'm assuming because it's a "stub"?

Of course, setting ExecStart=mediacenter27 works fine.
Logged
openSUSE TW/Plasma5 x86_64 | Win10Pro/RX560
S.M.S.L USB-DAC => Transcendent GG Pre (kit) => Transcendent mono OTLs (kit)
(heavily modded) Hammer Dynamics Super-12s (kit)
(optionally) VonSchweikert VR8s

erviv

  • World Citizen
  • ***
  • Posts: 213
Re: SystemD with "new" mc27 binary
« Reply #1 on: February 20, 2021, 07:54:29 pm »

the ExecStart line should read
ExecStart=/usr/bin/mediacenter27 /MediaServer

not MC27
I see you also don't have the line:
User=your_user_here, which is in the instructions from mwilliams in his post from15 Jan 2020

https://yabb.jriver.com/interact/index.php/topic,123771.msg857001.html#msg857001

Logged
MacBook Pro i5 2.3Ghz 8 GB (early 2011) 1Tb SSD; 3 Raspberry piís 4 and 2@ 3B (o/s: Buster).

mwillems

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 5119
  • "Linux Merit Badge" Recipient
Re: SystemD with "new" mc27 binary
« Reply #2 on: February 20, 2021, 08:05:49 pm »

the ExecStart line should read
ExecStart=/usr/bin/mediacenter27 /MediaServer

not MC27
I see you also don't have the line:
User=your_user_here, which is in the instructions from mwilliams in his post from15 Jan 2020

https://yabb.jriver.com/interact/index.php/topic,123771.msg857001.html#msg857001

I think he's running the service as his user rather than as a systemwide service so he might not need the user entry.

Interestingly, if I run the new mc27 stub with no flags, it starts MC just fine, but adding the /MediaServer flag just returns success without starting MC.  So it's something about the flag that's confusing it I think.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 70478
  • where the buffalo roam
Re: SystemD with "new" mc27 binary
« Reply #3 on: February 20, 2021, 09:15:56 pm »

Interestingly, if I run the new mc27 stub with no flags, it starts MC just fine, but adding the /MediaServer flag just returns success without starting MC.  So it's something about the flag that's confusing it I think.
Could just be running Media Server.
Logged
Pages: [1]   Go Up