append boot block before start block
boot() {
start && exit 0
}
append boot block before start block
boot() {
start && exit 0
}
What is your default shell: env | grep SHELL ? I think the init system is using /bin/sh, which might not like your multiple command not using the multiline separator. Try /bin/sh /etc/init.d/rclone start from command line.
START=6 could be too aggressive: the network is not up yet. Does rclone come up without a network? Try START=99.
Add exec >>/root/rclone.log 2>&1 before the first function to get all the output into a file. This way you will not be flying blind.
Try other things I recommended.
Start manual ::: working
/etc/init.d/rclone start
autostart don't work.
Change
START=2
to
START=99
and enable your service with
/etc/init.d/rclone enable
--config <path-to-users-rclone-config>
||
su - $USER -c $COMMAND
Dude, enable logging, reboot, then cat /root/rclone.log ....
Can you cat /etc/init.d/rclone? I want to see the changes you made...
I do not see the exec line...
Found it. Wrong place: before the first function to get all the output into a file
#!/bin/sh /etc/rc.common
START=99
STOP=12
exec >>/root/rclone.log 2>&1
start() {
Thx you working autostart service.
I see log fix problem.
Thx working autostart service.
I edit service.
I see log fix problem.
add --config /root/.config/rclone/rclone.conf
Thx.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.