I'm trying to make bash script.
This command working fine from command line:
"/usr/local/bin/rclone mount Dropbox: /dane/Dropbox/ --vfs-cache-mode=writes --allow-other --config /root/.config/rclone/rclone.conf
I want to execute this command with system startup and I did simple script.
line without
when I put
I tried also parameters below:
Sorry, I'm newbie and I'm almost sure there is very simple mistake, but I don't know where ?
This command working fine from command line:
"/usr/local/bin/rclone mount Dropbox: /dane/Dropbox/ --vfs-cache-mode=writes --allow-other --config /root/.config/rclone/rclone.conf
I want to execute this command with system startup and I did simple script.
Code:
#!/bin/sh
# PROVIDE: rclone
. /etc/rc.subr
name="rclone"
start_cmd="${name}_start"
stop_cmd="${name}_stop"
rclone_start() {
echo "rclone starting"
# your commands here
#/usr/local/bin/rclone mount Dropbox: /dane/Dropbox/ --vfs-cache-mode=writes --allow-other
command="/usr/local/bin/rclone mount Dropbox: /dane/Dropbox/ --vfs-cache-mode=writes --allow-other --config /root/.config/rclone/rclone.conf"
#command_args
}
rclone_stop() {
echo "rclone stopping"
# your commands here
umount -f /dane/Dropbox/
}
load_rc_config ${name}
run_rc_command "$1"
line without
command=
parameter working but after service rclone start
not going to "background" after execute.when I put
command=
before script not workingI tried also parameters below:
Code:
command="/usr/local/bin/rclone";
command_args="mount Dropbox: /dane/Dropbox/ --vfs-cache-mode=writes --allow-other --config /root/.config/rclone/rclone.conf";
Sorry, I'm newbie and I'm almost sure there is very simple mistake, but I don't know where ?