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
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!
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
-
oldiemotors
- NewUser

- Posts: 2
- Joined: 16 Aug 2013 21:00
- Status: Offline
Executing User command 0 and 1
You do not have the required permissions to view the files attached to this post.
- b0ssman
- Forum Moderator

- Posts: 2438
- Joined: 14 Feb 2013 08:34
- Location: Munich, Germany
- Status: Offline
Re: Executing User command 0 and 1
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.
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: Executing User command 0 and 1
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:
or something simmilar, so you only need to save as mystart.sh and launch as command 0
eg:
Code: Select all
/usr/local/etc/rc.d/plexmediaserver start
wait 10
/bin/sh /PlexConnect-master/PlexConnect_daemon.bash start12.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
Wiki
Last changes
HP T510
-
oldiemotors
- NewUser

- Posts: 2
- Joined: 16 Aug 2013 21:00
- Status: Offline
Re: Executing User command 0 and 1
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.
Thanks b0ssman and raulfg3 for your replies.