how to start a script at boot?

Status
Not open for further replies.

Kennyvb8

Contributor
Joined
Mar 18, 2017
Messages
112
Hello

i'm trying to get a program (plexdrive) to start at boot.
so far i tried this in command at postinit:
Code:
/usr/local/bin/screen -dmS plexdrive_screen /bin/sh /usr/local/bin/plexdrive mount -c /mnt/SSD0/home/kenny/.plexdrive -o allow_other /mnt/SSD0/PlexRemote

Also tried in script postinit:
Code:
/mnt/SSD0/home/kenny/plexdrive.sh

with this in the file
Code:
#!/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
export TERM=xterm
/usr/local/bin/screen -dmS plexdrive_screen /usr/local/bin/plexdrive mount -c /mnt/SSD0/home/kenny/.plexdrive -o allow_other /mnt/SSD0/PlexRemote


i have this in command
Code:
kldload fuse

in preinit

but no matter what i try, it just wont work...

in a nother machine i work with, it's just fedora, and there we put the script @Reboot in cron. works
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
well just wait a second here....

You certainly cannot be doing this inside of the FreeNAS host itself, correct? Are you doing this in some sort of a jail?
 

Kennyvb8

Contributor
Joined
Mar 18, 2017
Messages
112
well just wait a second here....

You certainly cannot be doing this inside of the FreeNAS host itself, correct? Are you doing this in some sort of a jail?

In the host. Because you can't use fuse mount in jails


Sent from my iPhone using Tapatalk
 

Kennyvb8

Contributor
Joined
Mar 18, 2017
Messages
112
ATM I'm execute the command my self


Sent from my iPhone using Tapatalk
 
Status
Not open for further replies.
Top