This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Executing User command 0 and 1

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
oldiemotors
NewUser
NewUser
Posts: 2
Joined: 16 Aug 2013 21:00
Status: Offline

Executing User command 0 and 1

Post by oldiemotors »

I have Plex Media Server installed inside a Jail (TheBrig) running on NAS4Free. In the NAS4Free web GUI under 'Extensions' 'TheBrig' I use the section 'User command 0' to automatically start PMS when the jail is started. This works fine, but I also have PlexConnect installed and I am trying to use 'User Command 1' to automatically start the PlexConnect daemon. Here are the two commands:

User command 0: /usr/local/etc/rc.d/plexmediaserver start
User command 1: /bin/sh /PlexConnect-master/PlexConnect_daemon.bash start

So, my PMS starts fine with user command 0, but I cannot get PlexConnect to start automagically with user command 1. If I execute the command from an SSH connection PlexConnect starts.

Anyone have a suggestion why this does not work or where I might look for a Jail log file that might provide a clue why this command is not working?

Thanks,
D
You do not have the required permissions to view the files attached to this post.

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Executing User command 0 and 1

Post by b0ssman »

redirect stdout and stderr to a file and see what the error message is
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Executing User command 0 and 1

Post by raulfg3 »

I suspect a time problem ( you try to start second at same time that first), better if you write both lines in a sh script, and wait some time before to start second command.

eg:

Code: Select all

/usr/local/etc/rc.d/plexmediaserver start
wait 10
/bin/sh /PlexConnect-master/PlexConnect_daemon.bash start
or something simmilar, so you only need to save as mystart.sh and launch as command 0
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

oldiemotors
NewUser
NewUser
Posts: 2
Joined: 16 Aug 2013 21:00
Status: Offline

Re: Executing User command 0 and 1

Post by oldiemotors »

Thanks for the replies. Turned out that the bash script could not find the Python script that it calls. When I entered the command from SSH I guess I was always in the PlexConnect-master folder. In the bash script I changed my INSTALL_DIR variable from "." to "/PlexConnect-master" and now it starts fine.

Thanks b0ssman and raulfg3 for your replies.

Post Reply

Return to “Jails”