RAN THE CODE:

cd /opt/MusicMagicMixer/
ls -la

ROOT WAS THE OWNER, SO I RAN

cd /opt
chown -R <user> MusicMagicMixer/
chgrp -R <user> MusicMagicMixer/

SCRIPT IS NOW:[/B](USER IS NOT JUST M)

#! /BIN/SH

# PROVIDES: MMSERVER
# REQUIRED-START:
# DEFAULT-START: 3 4 5
# DEFAULT-STOP: 0 1 2 6
# SHORT-DESCRIPTION: STARTUP SCRIPT FOR THE MUSICMAGIC SERVER
# DESCRIPTION: MUSICMAGIC SERVER PROVIDES MUSIC MIXES FOR SQUEEZEBOX
SERVER
### END INIT INFO
# SEND OUTPUT TO SYSLOG
# EXEC 1> >(LOGGER -S -T $(BASENAME $0)) 2>&1
# NON-PRIVILEGED USER TO RUN MUSICMAGICSERVER.
# DOESN'T WORK WITH USER SQUEEZEBOXSERVER, SO USE ROOT INSTEAD.
USER=M

# PATH TO THE MUSICMAGICMIXERSERVER
EXPORT MUSICHOME=\"/OPT/MUSICMAGICMIXER/\"

CASE $1 IN
START)
IF PGREP -F MUSICMAGICSERVER > /DEV/NULL
THEN
ECHO \"MUSICIP SERVER IS ALREADY RUNNING\"
ELSE
ECHO \"STARTING MUSICIP SERVER\"
SU - $USER -C $MUSICHOME\"MUSICMAGICSERVER START & > /DEV/NULL\"
FI
;;
STOP)
IF PGREP -F MUSICMAGICSERVER > /DEV/NULL
THEN
ECHO \"STOPPING MUSICIP SERVER\"
SU - $USER -C $MUSICHOME\"/MUSICMAGICSERVER STOP & > /DEV/NULL\"
ELSE
ECHO \"MUSICIP SERVER IS ALREADY STOPPED\"
FI
;;
STATUS)
IF PGREP -F MUSICMAGICSERVER > /DEV/NULL
THEN
ECHO \"MUSICIP SERVER IS RUNNING\"
ELSE
ECHO \"MUSICIP SERVER IS STOPPED\"
FI
;;
*)
ECHO \"USAGE: SERVICE MMSERVER { START | STOP | STATUS }\"
;;
ESAC

[B]AT THE TERMINAL, RAN:

sudo systemctl daemon-reload

sudo systemctl start mmserver.service

RECEIVE THE FOLLOWING ERROR MESSAGE:

Job for mmserver.service failed because the control process exited with
error code.
See "systemctl  status mmserver.service" and "journalctl  -xe" for
details.

RAN THE FOLLOWING:

journalctl  -xe

RECEIVED THE FOLLOWING ERROR:

SELinux is preventing mmserver from read access on the file
/usr/bin/su.

*****  Plugin catchall
(100. confidence) suggests   **************************

If you believe that
mmserver should be allowed read access on the su file by default.
Then you should report
this as a bug.
You can generate a local
policy module to allow this access.
Do
allow this access for now
by executing:
# ausearch -c 'mmserver'
--raw | audit2allow -M my-mmserver
# semodule -X 300 -i
my-mmserver.pp

FOLLOWED THE SUGGESTION IN THE ERROR MESSAGE:

# ausearch -c 'mmserver'
--raw | audit2allow -M my-mmserver
# semodule -X 300 -i
my-mmserver.pp

Ran the code to systemctl daemon-reload and start mmserver.service and
received the same error.

Some progress here, but still working on it. Is MusicMagicServer a
32-bit app? Could running it on a 64bit system be the problem?


------------------------------------------------------------------------
matrixed99's Profile: http://forums.slimdevices.com/member.php?userid=1562
View this thread: http://forums.slimdevices.com/showthread.php?t=107886

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to